Update

class pyrogram.raw.base.Update

Object contains info on events occurred.

Constructors:

This base type has 141 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.

UpdateBotBusinessConnect

{schema}

UpdateBotCallbackQuery

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

UpdateBotChatBoost

A channel boost has changed (bots only)

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.

UpdateBotDeleteBusinessMessage

{schema}

UpdateBotEditBusinessMessage

{schema}

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

UpdateBotMessageReaction

Bots only: a user has changed their reactions on a message with public reactions.

UpdateBotMessageReactions

Bots only: the number of reactions on a message with anonymous reactions has changed.

UpdateBotNewBusinessMessage

{schema}

UpdateBotPrecheckoutQuery

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

UpdateBotPurchasedPaidMedia

Telegram API type.

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

UpdateBroadcastRevenueTransactions

{schema}

UpdateBusinessBotCallbackQuery

Telegram API type.

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

UpdateChannelViewForumAsMessages

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.

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.

UpdateDeleteQuickReply

{schema}

UpdateDeleteQuickReplyMessages

{schema}

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

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, see here for more info »

UpdateNewAuthorization

A new session logged into the current user's account through an unknown device.

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.

UpdateNewQuickReply

{schema}

UpdateNewScheduledMessage

A message was added to the schedule queue of a chat

UpdateNewStickerSet

A new stickerset was installed

UpdateNewStoryReaction

{schema}

UpdateNotifySettings

Changes in notification settings.

UpdatePaidReactionPrivacy

Telegram API type.

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

UpdatePeerWallpaper

The wallpaper » of a given peer has 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

UpdatePinnedSavedDialogs

Pinned saved dialogs » were updated

UpdatePrivacy

Privacy rules were changed

UpdatePtsChanged

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

UpdateQuickReplies

{schema}

UpdateQuickReplyMessage

{schema}

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

UpdateReadStories

Stories of a specific peer were marked as 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

UpdateSavedDialogPinned

A saved message dialog was pinned/unpinned

UpdateSavedGifs

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

UpdateSavedReactionTags

{schema}

UpdateSavedRingtones

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

UpdateSentStoryReaction

Indicates we reacted to a story ».

UpdateServiceNotification

A service message for the user.

UpdateSmsJob

{schema}

UpdateStarsBalance

{schema}

UpdateStarsRevenueStatus

Telegram API type.

UpdateStickerSets

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

UpdateStickerSetsOrder

The order of stickersets was changed

UpdateStoriesStealthMode

Indicates that stories stealth mode was activated.

UpdateStory

A new story was posted.

UpdateStoryID

A story was successfully uploaded.

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