UpdateShortChatMessage#
- class pyrogram.raw.types.UpdateShortChatMessage#
Shortened constructor containing info on one new incoming text message from a chat.
Constructor of
Updates
.- Details:
Layer:
158
ID:
4D6DEEA5
- Parameters:
id (
int
32-bit
) – ID of the message.from_id (
int
64-bit
) – ID of the sender of the message.chat_id (
int
64-bit
) – ID of the chat where the message was sent.message (
str
) – Message.pts (
int
32-bit
) – PTS.pts_count (
int
32-bit
) – PTS count.date (
int
32-bit
) – date.out (
bool
, optional) – Whether the message is outgoing.mentioned (
bool
, optional) – Whether we were mentioned in this message.media_unread (
bool
, optional) – Whether the message contains some unread mentions.silent (
bool
, optional) – If true, the message is a silent message, no notifications should be triggered.fwd_from (
MessageFwdHeader
, optional) – Info about a forwarded message.via_bot_id (
int
64-bit
, optional) – Info about the inline bot used to generate this message.reply_to (
MessageReplyHeader
, optional) – Reply (thread) information.entities (List of
MessageEntity
, optional) – Entities for styled text.ttl_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 87 functions.
Returns list of chats with non-default notification settings.
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.
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 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.
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.
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.
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.
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.
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.