UpdateShortChatMessage
- class pyrogram.raw.types.UpdateShortChatMessage
Shortened constructor containing info on one new incoming text message from a chat
Constructor of
Updates
.- Details:
Layer:
194
ID:
4D6DEEA5
- Parameters:
id (
int
32-bit
) – ID of the messagefrom_id (
int
64-bit
) – ID of the sender of the messagechat_id (
int
64-bit
) – ID of the chat where the message was sentmessage (
str
) – Messagepts (
int
32-bit
) – PTSpts_count (
int
32-bit
) – PTS countdate (
int
32-bit
) – dateout (
bool
, optional) – Whether the message is outgoingmentioned (
bool
, optional) – Whether we were mentioned in this messagemedia_unread (
bool
, optional) – Whether the message contains some unread mentionssilent (
bool
, optional) – If true, the message is a silent message, no notifications should be triggeredfwd_from (
MessageFwdHeader
, optional) – Info about a forwarded messagevia_bot_id (
int
64-bit
, optional) – Info about the inline bot used to generate this messagereply_to (
MessageReplyHeader
, optional) – Reply (thread) informationentities (List of
MessageEntity
, optional) – Entities for styled textttl_period (
int
32-bit
, optional) – Time To Live of the message, once updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
- Functions:
This object can be returned by 105 functions.
Returns list of chats with non-default notification settings
{schema}
{schema}
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.
Import a chat invite and join a private chat/supergroup/channel
Start a conversation with a bot using a deep linking parameter
Turn a basic group into a supergroup
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
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
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 or chat
React to message.
Get message reactions »
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.
Get information about extended media
Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
Set a custom wallpaper » in a specific private chat with another user.
{schema}
{schema}
{schema}
{schema}
Telegram API function.
Telegram API function.
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
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
Transfer channel ownership
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.
Create a forum topic; requires manage_topics rights.
Edit forum topic; requires manage_topics rights.
Pin or unpin forum topics
Reorder pinned forum topics
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.
{schema}
{schema}
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 ».
{schema}
Refuse or end running call
Rate a call, returns info about the rating message sent to the official VoIP bot.
Create a group call or livestream
Join a group call
Leave a group call
Invite a set of users to a group call.
Terminate a group call
Change group call settings
Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves).
Edit information about a given group call participant
Edit the title of a group call or livestream
Subscribe or unsubscribe to a scheduled group call
Start a scheduled group call.
Start screen sharing in a call
Stop screen sharing in a group call
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
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.