Updates#
- class pyrogram.raw.types.Updates#
Full constructor of updates
Constructor of
Updates.- Details:
Layer:
227ID:
74AE4240
- Parameters:
- Functions:
This object can be returned by 130 functions.
Returns list of chats with non-default notification settings
Connect a business bot to the current account, or to change the current connection settings.
Bots may invoke this method to re-fetch the updateBotBusinessConnect constructor associated with a specific business connection_id, see here for more info on connected business bots.
Usable by ✅ Users ❌ Bots
Suggest a birthday to another user, see here for more info on birthdays in the API.
Deletes several contacts from the list.
Add an existing telegram user as contact.
If the add contact action bar is active, add that user as contact
Get users and geochats near you, see here for more info.
Stop getting notifications about discussion replies of a certain user in @replies
Sends a message to a chat
Send a media
Forwards messages by their IDs.
Changes chat name and sends a service message on it.
Changes chat photo and sends a service message on it
Deletes a user from a chat and sends a service message on it.
Start a conversation with a bot using a deep linking parameter
Send a result obtained using messages.getInlineBotResults.
Edit message
Return 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 Starting from layer 159, the vote will be sent from the peer specified using messages.saveDefaultSendAs.
Get poll results
Edit the default banned rights of a channel/supergroup/group.
Send scheduled messages right away
Delete scheduled messages
Set maximum Time-To-Live of all messages in the specified chat
Change the chat theme of a certain chat, see here for more info.
Dismiss or approve a chat join request related to a specific chat or channel.
Dismiss or approve all join requests related to a specific chat or channel.
Enable or disable content protection on a channel, group or private chat.
React to message.
Change the set of message reactions that can be used in a certain group, supergroup or channel
Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
Fetch updated information about paid media, see here for the full flow.
Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
Set a custom wallpaper in a specific private chat with another user.
Send a quick reply shortcut.
Delete one or more messages from a quick reply shortcut.
Edit/create a fact-check on a message.
Delete a fact-check from a message.
Sends one or more paid Telegram Star reactions, transferring Telegram Stars to a channel's balance.
Fetches an updatePaidReactionPrivacy update with the current default paid reaction privacy, see here for more info.
Mark one or more items of a todo list as completed or not completed.
Appends one or more items to a todo list.
Approve or reject a suggested post.
Edit forum topic.
Pin or unpin forum topics
Reorder pinned forum topics
Create a forum topic.
Transfer the ownership of a basic group, supergroup or channel to another user, see here for the full flow.
Edit a group participant's tag.
Add an answer option to an open-answer poll
Remove an answer option from an open-answer poll
As an admin, remove all of a specific participant's reactions from a single message.
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
Leave a channel/supergroup
Delete a channel/supergroup
Enable/disable message signatures in channels
Ban/unban/kick a user in a supergroup/channel.
Delete the history of a supergroup
Hide/unhide message history for new channel/supergroup users
Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds
Convert a supergroup to a gigagroup, when requested by channel suggestions.
Set whether all users should join a discussion group in order to comment on a post
Set whether all users should request admin approval to join the group.
Enable or disable forum functionality in a supergroup.
Enable or disable the native antispam system.
Hide or display the participants list in a supergroup.
Update the accent color and background custom emoji of a channel.
Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.
Set an emoji status for a channel or supergroup.
Admins with ban_users admin rights may allow users that apply a certain number of booosts to the group to bypass slow mode and other supergroup restrictions, see here for more info.
Disable ads on the specified channel, for all users.
Enable or disable paid messages in this supergroup or monoforum.
Toggle autotranslation in a channel, for all users: see here for more info.
Allow the specified bot to send us messages
Informs server about a purchase made through the App Store: for official applications only.
Informs server about a purchase made through the Play Store: for official applications only.
Apply a Telegram Premium giftcode
Launch a prepaid giveaway.
Refund a Telegram Stars transaction, see here for more info.
Upgrade a gift to a collectible gift: can only be used if the upgrade was already paid by the gift sender; see here for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).
Transfer a collectible gift to another user or channel: can only be used if transfer is free (i.e. messageActionStarGiftUnique.transfer_stars is not set); see here for more info on the full flow (including the different flow to use in case the transfer isn't free).
A collectible gift we own can be put up for sale on the gift marketplace with this method, see here for more info.
Accept or decline a previously received collectible gift purchase offer, see here for the full flow.
Send an offer to purchase a collectible gift, see here for the full flow.
Craft a new collectible gift by combining 1 to 4 owned collectible gifts of the same base gift type.
Refuse or end running call, see here for more info on the full flow.
Rate a call, returns info about the rating message sent to the official VoIP bot, see here for more info on the full flow.
Create a video chat or livestream, see here for the full flow.
Join any group call type.
Leave a group call without ending it for other participants.
Invite a set of users to a video chat/livestream; cannot be used for live stories or conference calls.
Terminate a group call, ending the room for all participants.
Change group call settings.
Start or stop recording a video chat/livestream, see here for more info.
Edit information about a participant of a non-RTMP video chat/livestream or conference.
Edit the title of a video chat or livestream.
Subscribe or unsubscribe to a scheduled group call.
Start a scheduled group call.
Start screen sharing in a non-RTMP video chat/livestream or conference.
Stop screen sharing in a non-RTMP video chat/livestream or conference.
Create and optionally join a new conference call.
Remove participants from a conference call.
Submit a verification message to conference call subchain 1, see subchains.
Invite a user to a conference call.
Decline a conference call invite.
Fetch blocks from a conference call subchain; handle the returned updateGroupCallChainBlocks as specified here.
Send an in-call message to all participants of a video chat/livestream or live story, including in RTMP mode, see here for more info.
Delete specific messages from the in-call message overlay of a video chat/livestream or live story, including in RTMP mode.
As an admin, delete all messages from a specific participant in the in-call message overlay of a video chat/livestream or live story, including in RTMP mode.
Edit peers in peer folder
Import a chat folder deep link, joining some or all the chats in the folder.
Join channels and supergroups recently added to a chat folder deep link.
Delete a folder imported using a chat folder deep link
Uploads a Telegram Story.
Edit an uploaded story May also be used in a business connection, not by wrapping the query in invokeWithBusinessConnection, but rather by specifying the ID of a controlled business user in peer: in this context, the method can only be used to edit stories posted by the same business bot on behalf of the user with stories.sendStory.
Activates stories stealth mode, see here for more info.
React to a story.
Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories updates, see here for more info.
Start a live story, optionally using RTMP livestream mode, see here for the full flow.