Update

class pyrogram.raw.base.Update

Object contains info on events occured.

Constructors

This base type has 91 constructors available.

UpdateBotCallbackQuery

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

UpdateBotInlineQuery

An incoming inline query.

UpdateBotInlineSend

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

UpdateBotPrecheckoutQuery

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

UpdateBotShippingQuery

This object contains information about an incoming shipping query.

UpdateBotStopped

Constructor type of Update.

UpdateBotWebhookJSON

A new incoming event; for bots only.

UpdateBotWebhookJSONQuery

A new incoming query; for bots only.

UpdateChannel

A new channel is available.

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

Constructor type of Update.

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

Constructor type of Update.

UpdateChatDefaultBannedRights

Default banned rights in a normal chat were updated.

UpdateChatParticipant

Constructor type of Update.

UpdateChatParticipantAdd

New group member.

UpdateChatParticipantAdmin

Admin permissions of a user in a legacy 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

Constructor type of Update.

UpdateGroupCallParticipants

Constructor type of Update.

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.

UpdateMessageID

Sent message with random_id client identifier was assigned an identifier.

UpdateMessagePoll

The results of a poll have changed.

UpdateMessagePollVote

A specific user has voted in a poll.

UpdateNewChannelMessage

A new message was sent in a channel/supergroup.

UpdateNewEncryptedMessage

New encrypted message.

UpdateNewMessage

New message in a private chat or in a legacy 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

A peer was blocked.

UpdatePeerHistoryTTL

Constructor type of Update.

UpdatePeerLocated

List of peers near you was updated.

UpdatePeerSettings

Settings of a certain peer have changed.

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.

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.

UpdateRecentStickers

The recent sticker list was updated.

UpdateSavedGifs

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

UpdateServiceNotification

A service message for the user.

UpdateStickerSets

Installed stickersets have changed, the client should refetch them using messages.getAllStickers.

UpdateStickerSetsOrder

The order of stickersets was changed.

UpdateTheme

A cloud theme was updated.

UpdateUserName

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

UpdateUserPhone

A user’s phone number was changed.

UpdateUserPhoto

Change of contact’s profile photo.

UpdateUserStatus

Contact status update.

UpdateUserTyping

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

UpdateWebPage

An instant view webpage preview was generated.