mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-22 08:13:53 +00:00
fix according to update of tgbotapi version
This commit is contained in:
parent
51c300c734
commit
f52590868c
@ -48,7 +48,7 @@ suspend fun main(args: Array<String>) {
|
|||||||
+"Send me some content or " + botCommand("stop") + " if you want to stop sending"
|
+"Send me some content or " + botCommand("stop") + " if you want to stop sending"
|
||||||
}
|
}
|
||||||
|
|
||||||
val contentMessage = waitContentMessage().filter { message ->
|
val contentMessage = waitAnyContentMessage().filter { message ->
|
||||||
message.sameThread(it.sourceMessage)
|
message.sameThread(it.sourceMessage)
|
||||||
}.first()
|
}.first()
|
||||||
val content = contentMessage.content
|
val content = contentMessage.content
|
||||||
|
Loading…
Reference in New Issue
Block a user