Updates

class pyrogram.raw.types.Updates

Full constructor of updates.

Constructor of Updates.

Details:
  • Layer: 136

  • ID: 0x74ae4240

Parameters
  • updates (List of Update) – List of updates.

  • users (List of User) – List of users mentioned in updates.

  • chats (List of Chat) – List of chats mentioned in updates.

  • date (int 32-bit) – Current date.

  • seq (int 32-bit) – Total number of sent updates.

Functions:

This object can be returned by 69 functions.

account.GetNotifyExceptions

Returns list of chats with non-default notification settings.

contacts.DeleteContacts

Deletes several contacts from the list.

contacts.AddContact

Add an existing telegram user as contact.

contacts.AcceptContact

If the peer settings of a new user allow us to add him as contact, add that user as contact.

contacts.GetLocated

Get contacts near you.

contacts.BlockFromReplies

Stop getting notifications about thread replies of a certain user in @replies.

messages.SendMessage

Sends a message to a chat.

messages.SendMedia

Send a media.

messages.ForwardMessages

Forwards messages by their IDs.

messages.EditChatTitle

Chanages chat name and sends a service message on it.

messages.EditChatPhoto

Changes chat photo and sends a service message on it.

messages.AddChatUser

Adds a user to a chat and sends a service message on it.

messages.DeleteChatUser

Deletes a user from a chat and sends a service message on it.

messages.CreateChat

Creates a new chat.

messages.ImportChatInvite

Import a chat invite and join a private chat/supergroup/channel.

messages.StartBot

Start a conversation with a bot using a deep linking parameter.

messages.MigrateChat

Turn a legacy group into a supergroup.

messages.SendInlineBotResult

Send a result obtained using messages.getInlineBotResults.

messages.EditMessage

Edit message.

messages.GetAllDrafts

Save get all message drafts.

messages.SetGameScore

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

messages.SendScreenshotNotification

Notify the other user in a private chat that a screenshot of the chat was taken.

messages.SendMultiMedia

Send an album or grouped media.

messages.UpdatePinnedMessage

Pin a message.

messages.SendVote

Vote in a poll.

messages.GetPollResults

Get poll results.

messages.EditChatDefaultBannedRights

Edit the default banned rights of a channel/supergroup/group.

messages.SendScheduledMessages

Send scheduled messages right away.

messages.DeleteScheduledMessages

Delete scheduled messages.

messages.SetHistoryTTL

Set maximum Time-To-Live of all messages in the specified chat.

messages.SetChatTheme

Change the chat theme of a certain chat.

messages.HideChatJoinRequest

Telegram API function.

messages.HideAllChatJoinRequests

Telegram API function.

messages.ToggleNoForwards

Telegram API function.

messages.SendReaction

Send reaction to message.

messages.GetMessagesReactions

Get message reactions.

messages.SetChatAvailableReactions

Telegram API function.

help.GetAppChangelog

Get changelog of current app.

channels.CreateChannel

Create a supergroup/channel.

channels.EditAdmin

Modify the admin rights of a user in a supergroup/channel.

channels.EditTitle

Edit the name of a channel/supergroup.

channels.EditPhoto

Change the photo of a channel/supergroup.

channels.JoinChannel

Join a channel/supergroup.

channels.LeaveChannel

Leave a channel/supergroup.

channels.InviteToChannel

Invite users to a channel/supergroup.

channels.DeleteChannel

Delete a channel/supergroup.

channels.ToggleSignatures

Enable/disable message signatures in channels.

channels.EditBanned

Ban/unban/kick a user in a supergroup/channel.

channels.TogglePreHistoryHidden

Hide/unhide message history for new channel/supergroup users.

channels.EditCreator

Transfer channel ownership.

channels.ToggleSlowMode

Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds.

channels.ConvertToGigagroup

Convert a supergroup to a gigagroup, when requested by channel suggestions.

phone.DiscardCall

Refuse or end running call.

phone.SetCallRating

Rate a call.

phone.CreateGroupCall

Create a group call or livestream.

phone.JoinGroupCall

Join a group call.

phone.LeaveGroupCall

Leave a group call.

phone.InviteToGroupCall

Invite a set of users to a group call.

phone.DiscardGroupCall

Terminate a group call.

phone.ToggleGroupCallSettings

Change group call settings.

phone.ToggleGroupCallRecord

Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves).

phone.EditGroupCallParticipant

Edit information about a given group call participant.

phone.EditGroupCallTitle

Edit the title of a group call or livestream.

phone.ToggleGroupCallStartSubscription

Subscribe or unsubscribe to a scheduled group call.

phone.StartScheduledGroupCall

Start a scheduled group call.

phone.JoinGroupCallPresentation

Start screen sharing in a call.

phone.LeaveGroupCallPresentation

Stop screen sharing in a group call.

folders.EditPeerFolders

Edit peers in peer folder.

folders.DeleteFolder

Delete a peer folder.