Kotlin Telegram Bot 0.11.7a Help

Spring JPA

Save all states in database

All you have to do is add a dependency for source-jpa:

dependencies { implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-core:0.11.7a") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-spring:0.11.7a") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-source-jpa:0.11.7a") }
dependencies { implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-core:0.11.7a") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-spring:0.11.7a") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-source-spring2-jpa:0.11.7a") }

Available properties

PROPERTY

DEFAULT

DESCRIPTION

telegram-bot.source-jpa.enabled

true

Disable all default sources

telegram-bot.source-jpa.message-source.enabled

true

Disable default message source

telegram-bot.source-jpa.chain-source.enabled

true

Disable default chain source

telegram-bot.source-jpa.callback-content-source.enabled

true

Disable default callback content source

telegram-bot.source-jpa.callback-content-source.per-user

20

Max count of contents will be saved for every user (-1 for ignore)

Last modified: 27 July 2024