Update

class aiogram.types.update.Update(conf: Optional[Dict[str, Any]] = None, **kwargs: Any)[source]

Bases: aiogram.types.base.TelegramObject

This object represents an incoming update. At most one of the optional parameters can be present in any given update.

https://core.telegram.org/bots/api#update

Deserialize object

Parameters
  • conf

  • kwargs

AllowedUpdates

class aiogram.types.update.AllowedUpdates[source]

Bases: aiogram.utils.helper.Helper

Helper for allowed_updates parameter in getUpdates and setWebhook methods.

You can use &, + or | operators for make combination of allowed updates.

Example:
>>> bot.get_updates(allowed_updates=AllowedUpdates.MESSAGE + AllowedUpdates.EDITED_MESSAGE)