Kotlin Telegram Bot 0.10.3 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.10.3") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-spring:0.10.3") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-source-jpa:0.10.3") }
dependencies { implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-core:0.10.3") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-spring:0.10.3") implementation("io.github.dehuckakpyt.telegrambot:telegram-bot-source-spring2-jpa:0.10.3") }

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: 07 September 2024