Update#

class pyrogram.raw.base.Update#

Object contains info on events occurred.

Constructors:

This base type has 111 constructors available.

UpdateAttachMenuBots

The list of installed attachment menu entries » has changed, use messages.getAttachMenuBots to fetch the updated list.

UpdateAutoSaveSettings

Media autosave settings have changed and must be refetched using account.getAutoSaveSettings.

UpdateBotCallbackQuery

A callback button was pressed, and the button data was sent to the bot that created the button.

UpdateBotChatInviteRequester

Someone has requested to join a chat or channel (bots only, users will receive an updatePendingJoinRequests, instead).

UpdateBotCommands

The command set of a certain bot in a certain chat has changed.

UpdateBotInlineQuery

An incoming inline query.

UpdateBotInlineSend

The result of an inline query that was chosen by a user and sent to their chat partner.

UpdateBotMenuButton

The menu button behavior for the specified bot has changed.

UpdateBotPrecheckoutQuery

This object contains information about an incoming pre-checkout query.

UpdateBotShippingQuery

This object contains information about an incoming shipping query.

UpdateBotStopped

A bot was stopped or re-started.

UpdateBotWebhookJSON

A new incoming event; for bots only.

UpdateBotWebhookJSONQuery

A new incoming query; for bots only.

UpdateChannel

A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched.

UpdateChannelAvailableMessages

The history of a channel/supergroup was hidden.

UpdateChannelMessageForwards

The forward counter of a message in a channel has changed.

UpdateChannelMessageViews

The view counter of a message in a channel has changed.

UpdateChannelParticipant

A participant has left, joined, was banned or admined in a channel or supergroup.

UpdateChannelPinnedTopic

A forum topic » was pinned or unpinned.

UpdateChannelPinnedTopics

The pinned topics of a forum have changed.

UpdateChannelReadMessagesContents

The specified channel/supergroup messages were read.

UpdateChannelTooLong

There are new updates in the specified channel, the client must fetch them.

UpdateChannelUserTyping

A user is typing in a supergroup, channel or message thread.

UpdateChannelWebPage

A webpage preview of a link in a channel/supergroup message was generated.

UpdateChat

A new chat is available.

UpdateChatDefaultBannedRights

Default banned rights in a normal chat were updated.

UpdateChatParticipant

A user has joined or left a specific chat.

UpdateChatParticipantAdd

New group member.

UpdateChatParticipantAdmin

Admin permissions of a user in a basic group were changed.

UpdateChatParticipantDelete

A member has left the group.

UpdateChatParticipants

Composition of chat participants changed.

UpdateChatUserTyping

The user is preparing a message in a group; typing, recording, uploading, etc.

UpdateConfig

The server-side configuration has changed; the client should re-fetch the config using help.getConfig.

UpdateContactsReset

All contacts were deleted.

UpdateDcOptions

Changes in the data center configuration options.

UpdateDeleteChannelMessages

Some messages in a supergroup/channel were deleted.

UpdateDeleteMessages

Messages were deleted.

UpdateDeleteScheduledMessages

Some scheduled messages were deleted from the schedule queue of a chat.

UpdateDialogFilter

A new folder was added.

UpdateDialogFilterOrder

New folder order.

UpdateDialogFilters

Clients should update folder info.

UpdateDialogPinned

A dialog was pinned/unpinned.

UpdateDialogUnreadMark

The manual unread mark of a chat was changed.

UpdateDraftMessage

Notifies a change of a message draft.

UpdateEditChannelMessage

A message was edited in a channel/supergroup.

UpdateEditMessage

A message was edited.

UpdateEncryptedChatTyping

Interlocutor is typing a message in an encrypted chat.

UpdateEncryptedMessagesRead

Communication history in an encrypted chat was marked as read.

UpdateEncryption

Change of state in an encrypted chat.

UpdateFavedStickers

The list of favorited stickers was changed, the client should call messages.getFavedStickers to refetch the new list.

UpdateFolderPeers

The peer list of a peer folder was updated.

UpdateGeoLiveViewed

Live geoposition message was viewed.

UpdateGroupCall

A new groupcall was started.

UpdateGroupCallConnection

New WebRTC parameters.

UpdateGroupCallParticipants

The participant list of a certain group call has changed.

UpdateGroupInvitePrivacyForbidden

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.

UpdateInlineBotCallbackQuery

This notification is received by bots when a button is pressed.

UpdateLangPack

Language pack updated.

UpdateLangPackTooLong

A language pack has changed, the client should manually fetch the changed strings using langpack.getDifference.

UpdateLoginToken

A login token (for login via QR code) was accepted.

UpdateMessageExtendedMedia

Extended media update.

UpdateMessageID

Sent message with random_id client identifier was assigned an identifier.

UpdateMessagePoll

The results of a poll have changed.

UpdateMessagePollVote

A specific peer has voted in a poll.

UpdateMessageReactions

New message reactions » are available.

UpdateMoveStickerSetToTop

A stickerset was just moved to top.

UpdateNewChannelMessage

A new message was sent in a channel/supergroup.

UpdateNewEncryptedMessage

New encrypted message.

UpdateNewMessage

New message in a private chat or in a basic group.

UpdateNewScheduledMessage

A message was added to the schedule queue of a chat.

UpdateNewStickerSet

A new stickerset was installed.

UpdateNotifySettings

Changes in notification settings.

UpdatePeerBlocked

We blocked a peer, see here » for more info on blocklists.

UpdatePeerHistoryTTL

The Time-To-Live for messages sent by the current user in a specific chat has changed.

UpdatePeerLocated

List of peers near you was updated.

UpdatePeerSettings

Settings of a certain peer have changed.

UpdatePendingJoinRequests

Someone has requested to join a chat or channel.

UpdatePhoneCall

An incoming phone call.

UpdatePhoneCallSignalingData

Incoming phone call signaling payload.

UpdatePinnedChannelMessages

Messages were pinned/unpinned in a channel/supergroup.

UpdatePinnedDialogs

Pinned dialogs were updated.

UpdatePinnedMessages

Some messages were pinned in a chat.

UpdatePrivacy

Privacy rules were changed.

UpdatePtsChanged

Common message box sequence PTS has changed, state has to be refetched using updates.getState.

UpdateReadChannelDiscussionInbox

Incoming comments in a discussion thread were marked as read.

UpdateReadChannelDiscussionOutbox

Outgoing comments in a discussion thread were marked as read.

UpdateReadChannelInbox

Incoming messages in a channel/supergroup were read.

UpdateReadChannelOutbox

Outgoing messages in a channel/supergroup were read.

UpdateReadFeaturedEmojiStickers

Some featured custom emoji stickers were marked as read.

UpdateReadFeaturedStickers

Some featured stickers were marked as read.

UpdateReadHistoryInbox

Incoming messages were read.

UpdateReadHistoryOutbox

Outgoing messages were read.

UpdateReadMessagesContents

Contents of messages in the common message box were read.

UpdateRecentEmojiStatuses

The list of recent emoji statuses has changed.

UpdateRecentReactions

The list of recent message reactions has changed.

UpdateRecentStickers

The recent sticker list was updated.

UpdateSavedGifs

The saved gif list has changed, the client should refetch it using messages.getSavedGifs.

UpdateSavedRingtones

The list of saved notification sounds has changed, use account.getSavedRingtones to fetch the new list.

UpdateServiceNotification

A service message for the user.

UpdateStickerSets

Installed stickersets have changed, the client should refetch them as described in the docs.

UpdateStickerSetsOrder

The order of stickersets was changed.

UpdateTheme

A cloud theme was updated.

UpdateTranscribedAudio

A pending voice message transcription » initiated with messages.transcribeAudio was updated.

UpdateUser

User information was updated, it must be refetched using users.getFullUser.

UpdateUserEmojiStatus

The emoji status of a certain user has changed.

UpdateUserName

Changes the user's first name, last name and username.

UpdateUserPhone

A user's phone number was changed.

UpdateUserStatus

Contact status update.

UpdateUserTyping

The user is preparing a message; typing, recording, uploading, etc.

UpdateWebPage

An instant view webpage preview was generated.

UpdateWebViewResultSent

Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using messages.sendWebViewResultMessage.