1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-07-06 00:00:50 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.api/get-updates.md
2021-03-17 15:18:37 +00:00

13 lines
2.0 KiB
Markdown

//[docs](../../index.md)/[dev.inmo.tgbotapi.extensions.api](index.md)/[getUpdates](get-updates.md)
# getUpdates
[common]
Content
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getUpdates](get-updates.md)(offset: [UpdateIdentifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FUpdateIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null, limit: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = getUpdatesLimit.last, timeout: [Seconds](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FSeconds%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null, allowed_updates: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>? = ALL_UPDATES_LIST): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Update](../dev.inmo.tgbotapi.types.update.abstracts/-update/index.md)>
suspend fun [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[getUpdates](get-updates.md)(lastUpdate: [Update](../dev.inmo.tgbotapi.types.update.abstracts/-update/index.md), limit: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = getUpdatesLimit.last, timeout: [Seconds](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FSeconds%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null, allowed_updates: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>? = ALL_UPDATES_LIST): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Update](../dev.inmo.tgbotapi.types.update.abstracts/-update/index.md)>