1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-17 22:03:48 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/update-handler-with-media-groups-adaptation.md
2021-03-17 15:18:37 +00:00

3.9 KiB

//docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/updateHandlerWithMediaGroupsAdaptation

updateHandlerWithMediaGroupsAdaptation

[common]
Content
fun .updateHandlerWithMediaGroupsAdaptation(output: UpdateReceiver<Update>, debounceTimeMillis: Long = 1000L): UpdateReceiver<Update>
More info

Create UpdateReceiver object which will correctly accumulate updates and send into output updates which INCLUDE dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MediaGroupUpdates.

See also

common

dev.inmo.tgbotapi.updateshandlers.UpdateReceiver

[common]
Content
fun .updateHandlerWithMediaGroupsAdaptation(output: UpdateReceiver<Update>): suspend (Update) -> Unit
More info

Create UpdateReceiver object which will correctly accumulate updates and send into output updates which INCLUDE dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MediaGroupUpdates.

See also

common

dev.inmo.tgbotapi.updateshandlers.UpdateReceiver