Updates¶
-
class
pyrogram.raw.base.
Updates
¶ Object which is perceived by the client without a call on its part when an event occurs.
- Constructors
This base type has 7 constructors available.
Shortened constructor containing info on one update not requiring auxiliary data.
Shortened constructor containing info on one new incoming text message from a chat.
Info about a message sent to (received from) another user.
Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).
Full constructor of updates.
Constructor for a group of updates.
Too many updates, it is necessary to execute updates.getDifference.
- Methods
This object can be returned by 54 methods:
Returns list of chats with non-default notification settings.
Deletes several contacts from the list.
Add an existing telegram user as contact.
If the peer settings of a new user allow us to add him as contact, add that user as contact.
Get contacts near you.
Stop getting notifications about thread replies of a certain user in @replies.
Sends a message to a chat.
Send a media.
Forwards messages by their IDs.
Chanages chat name and sends a service message on it.
Changes chat photo and sends a service message on it.
Adds a user to a chat and sends a service message on it.
Deletes a user from a chat and sends a service message on it.
Creates a new chat.
Import a chat invite and join a private chat/supergroup/channel.
Start a conversation with a bot using a deep linking parameter.
Turn a legacy group into a supergroup.
Send a result obtained using messages.getInlineBotResults.
Edit message.
Save get all message drafts.
Use this method to set the score of the specified user in a game sent as a normal message (bots only).
Notify the other user in a private chat that a screenshot of the chat was taken.
Send an album or grouped media.
Pin a message.
Vote in a poll.
Get poll results.
Edit the default banned rights of a channel/supergroup/group.
Send scheduled messages right away.
Delete scheduled messages.
Get changelog of current app.
Create a supergroup/channel.
Modify the admin rights of a user in a supergroup/channel.
Edit the name of a channel/supergroup.
Change the photo of a channel/supergroup.
Join a channel/supergroup.
Leave a channel/supergroup.
Invite users to a channel/supergroup.
Delete a channel/supergroup.
Enable/disable message signatures in channels.
Ban/unban/kick a user in a supergroup/channel.
Hide/unhide message history for new channel/supergroup users.
Transfer channel ownership.
Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds.
Refuse or end running call.
Rate a call.
Telegram API method.
Telegram API method.
Telegram API method.
Telegram API method.
Telegram API method.
Telegram API method.
Telegram API method.
Edit peers in peer folder.
Delete a peer folder.