Update#
- class pyrogram.raw.base.Update#
Object contains info on events occurred.
- Constructors:
This base type has 111 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.
A callback button was pressed, and the button data was sent to the bot that created the button.
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.
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.
This object contains information about an incoming pre-checkout query.
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.
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.
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.
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.
0-N updates of this type may be returned only when invoking messages.addChatUser, channels.inviteToChannel or messages.createChat: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.
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.
A new message was sent in a channel/supergroup.
New encrypted message.
New message in a private chat or in a basic group.
A message was added to the schedule queue of a chat.
A new stickerset was installed.
Changes in notification settings.
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.
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.
Privacy rules were changed.
Common message box sequence PTS has changed, state has to be refetched using updates.getState.
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.
The list of recent emoji statuses has changed.
The list of recent message reactions has changed.
The recent sticker list was updated.
The saved gif list has changed, the client should refetch it using messages.getSavedGifs.
The list of saved notification sounds has changed, use account.getSavedRingtones to fetch the new list.
A service message for the user.
Installed stickersets have changed, the client should refetch them as described in the docs.
The order of stickersets was changed.
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.