mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 00:27:19 +00:00
update GiveawaysBot
This commit is contained in:
parent
6eafd89542
commit
14235e7bd4
@ -29,7 +29,7 @@ suspend fun main(vararg args: String) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
telegramBotWithBehaviourAndLongPolling(botToken, CoroutineScope(Dispatchers.IO), testServer = isTestServer) {
|
telegramBotWithBehaviourAndLongPolling(botToken, testServer = isTestServer) {
|
||||||
// start here!!
|
// start here!!
|
||||||
val me = getMe()
|
val me = getMe()
|
||||||
println(me)
|
println(me)
|
||||||
@ -50,8 +50,8 @@ suspend fun main(vararg args: String) {
|
|||||||
println(it)
|
println(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
allUpdatesFlow.subscribeSafelyWithoutExceptions(this) {
|
// allUpdatesFlow.subscribeSafelyWithoutExceptions(this) {
|
||||||
println(it)
|
// println(it)
|
||||||
}
|
// }
|
||||||
}.second.join()
|
}.second.join()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user