io.github.dehuckakpyt.telegrambot.source.message.DatabaseMessageSource.kt Maven / Gradle / Ivy
The newest version!
package io.github.dehuckakpyt.telegrambot.source.message
import com.dehucka.exposed.ext.executeQuery
import io.github.dehuckakpyt.telegrambot.model.DatabaseTelegramMessage
class DatabaseMessageSource : MessageSource {
override suspend fun save(
chatId: Long,
fromId: Long,
messageId: Long,
text: String?
): Unit = executeQuery {
DatabaseTelegramMessage.new {
this.chatId = chatId
this.fromId = fromId
this.messageId = messageId
this.text = text
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy