Update
- class pyrogram.raw.base.Update
Object contains info on events occurred.
- Constructors:
This base type has 141 constructors available.
The list of installed attachment menu entries » has changed, use messages.getAttachMenuBots to fetch the updated list.
Media autosave settings have changed and must be refetched using account.getAutoSaveSettings.
{schema}
A callback button was pressed, and the button data was sent to the bot that created the button
A channel boost has changed (bots only)
Someone has requested to join a chat or channel (bots only, users will receive an updatePendingJoinRequests, instead)
The command set of a certain bot in a certain chat has changed.
{schema}
{schema}
An incoming inline query
The result of an inline query that was chosen by a user and sent to their chat partner.
The menu button behavior for the specified bot has changed
Bots only: a user has changed their reactions on a message with public reactions.
Bots only: the number of reactions on a message with anonymous reactions has changed.
{schema}
This object contains information about an incoming pre-checkout query.
Telegram API type.
This object contains information about an incoming shipping query.
A bot was stopped or re-started.
A new incoming event; for bots only
A new incoming query; for bots only
{schema}
Telegram API type.
A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched.
The history of a channel/supergroup was hidden.
The forward counter of a message in a channel has changed
The view counter of a message in a channel has changed
A participant has left, joined, was banned or admined in a channel or supergroup.
A forum topic » was pinned or unpinned.
The pinned topics of a forum have changed.
The specified channel/supergroup messages were read
There are new updates in the specified channel, the client must fetch them.
A user is typing in a supergroup, channel or message thread
Users may also choose to display messages from all topics as if they were sent to a normal group, using a "View as messages" setting in the local client.
A webpage preview of a link in a channel/supergroup message was generated
A new chat is available
Default banned rights in a normal chat were updated
A user has joined or left a specific chat
New group member.
Admin permissions of a user in a basic group were changed
A member has left the group.
Composition of chat participants changed.
The user is preparing a message in a group; typing, recording, uploading, etc.
The server-side configuration has changed; the client should re-fetch the config using help.getConfig
All contacts were deleted
Changes in the data center configuration options.
Some messages in a supergroup/channel were deleted
Messages were deleted.
{schema}
{schema}
Some scheduled messages were deleted from the schedule queue of a chat
A new folder was added
New folder order
Clients should update folder info
A dialog was pinned/unpinned
The manual unread mark of a chat was changed
Notifies a change of a message draft.
A message was edited in a channel/supergroup
A message was edited
Interlocutor is typing a message in an encrypted chat.
Communication history in an encrypted chat was marked as read.
Change of state in an encrypted chat.
The list of favorited stickers was changed, the client should call messages.getFavedStickers to refetch the new list
The peer list of a peer folder was updated
Live geoposition message was viewed
A new groupcall was started
New WebRTC parameters
The participant list of a certain group call has changed
This notification is received by bots when a button is pressed
Language pack updated
A language pack has changed, the client should manually fetch the changed strings using langpack.getDifference
A login token (for login via QR code) was accepted.
Extended media update
Sent message with random_id client identifier was assigned an identifier.
The results of a poll have changed
A specific peer has voted in a poll
New message reactions » are available
A stickerset was just moved to top, see here for more info »
A new session logged into the current user's account through an unknown device.
A new message was sent in a channel/supergroup
New encrypted message.
New message in a private chat or in a basic group.
{schema}
A message was added to the schedule queue of a chat
A new stickerset was installed
{schema}
Changes in notification settings.
Telegram API type.
We blocked a peer, see here » for more info on blocklists.
The Time-To-Live for messages sent by the current user in a specific chat has changed
List of peers near you was updated
Settings of a certain peer have changed
The wallpaper » of a given peer has changed.
Someone has requested to join a chat or channel
An incoming phone call
Incoming phone call signaling payload
Messages were pinned/unpinned in a channel/supergroup
Pinned dialogs were updated
Some messages were pinned in a chat
Pinned saved dialogs » were updated
Privacy rules were changed
Common message box sequence PTS has changed, state has to be refetched using updates.getState
{schema}
{schema}
Incoming comments in a discussion thread were marked as read
Outgoing comments in a discussion thread were marked as read
Incoming messages in a channel/supergroup were read
Outgoing messages in a channel/supergroup were read
Some featured custom emoji stickers were marked as read
Some featured stickers were marked as read
Incoming messages were read
Outgoing messages were read
Contents of messages in the common message box were read
Stories of a specific peer were marked as read.
The list of recent emoji statuses has changed
The list of recent message reactions has changed
The recent sticker list was updated
A saved message dialog was pinned/unpinned
The saved gif list has changed, the client should refetch it using messages.getSavedGifs
{schema}
The list of saved notification sounds has changed, use account.getSavedRingtones to fetch the new list.
Indicates we reacted to a story ».
A service message for the user.
{schema}
{schema}
Telegram API type.
Installed stickersets have changed, the client should refetch them as described in the docs.
The order of stickersets was changed
Indicates that stories stealth mode was activated.
A new story was posted.
A story was successfully uploaded.
A cloud theme was updated
A pending voice message transcription » initiated with messages.transcribeAudio was updated.
User information was updated, it must be refetched using users.getFullUser.
The emoji status of a certain user has changed
Changes the user's first name, last name and username.
A user's phone number was changed
Contact status update.
The user is preparing a message; typing, recording, uploading, etc.
An instant view webpage preview was generated
Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using messages.sendWebViewResultMessage