Object describing actions connected to a service message.
messageActionEmpty#b6aef7b0 = MessageAction;
messageActionChatCreate#a6638b9a title:string users:Vector<int> = MessageAction;
messageActionChatEditTitle#b5a1ce5a title:string = MessageAction;
messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction;
messageActionChatDeletePhoto#95e3fbef = MessageAction;
messageActionChatAddUser#488a7337 users:Vector<int> = MessageAction;
messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction;
messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction;
messageActionChannelCreate#95d2ac92 title:string = MessageAction;
messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction;
messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction;
messageActionPinMessage#94bd38ed = MessageAction;
messageActionHistoryClear#9fbab604 = MessageAction;
messageActionGameScore#92a72876 game_id:long score:int = MessageAction;
messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction;
messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction;
messageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction;
messageActionScreenshotTaken#4792929b = MessageAction;
messageActionCustomAction#fae69f56 message:string = MessageAction;
messageActionBotAllowed#abe9affe domain:string = MessageAction;
messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;
messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;
messageActionContactSignUp#f3f25f76 = MessageAction;
| Constructor | Description |
|---|---|
| messageActionEmpty | Empty constructor. |
| messageActionChatCreate | Group created |
| messageActionChatEditTitle | Group name changed. |
| messageActionChatEditPhoto | Group profile changed |
| messageActionChatDeletePhoto | Group profile photo removed. |
| messageActionChatAddUser | New member in the group |
| messageActionChatDeleteUser | User left the group. |
| messageActionChatJoinedByLink | A user joined the chat via an invite link |
| messageActionChannelCreate | The channel was created |
| messageActionChatMigrateTo | Indicates the chat was migrated to the specified supergroup |
| messageActionChannelMigrateFrom | Indicates the channel was migrated from the specified chat |
| messageActionPinMessage | A message was pinned |
| messageActionHistoryClear | Chat history was cleared |
| messageActionGameScore | Someone scored in a game |
| messageActionPaymentSentMe | A user just sent a payment to me (a bot) |
| messageActionPaymentSent | A payment was sent |
| messageActionPhoneCall | A phone call |
| messageActionScreenshotTaken | A screenshot of the chat was taken |
| messageActionCustomAction | Custom action (most likely not supported by the current layer, an upgrade might be needed) |
| messageActionBotAllowed | We have given the bot permission to send us direct messages. The optional fields specify how did we authorize the bot to send us messages. |
| messageActionSecureValuesSentMe | Secure telegram passport values were received |
| messageActionSecureValuesSent | Request for secure telegram passport values was sent |
| messageActionContactSignUp | A contact just signed up to telegram |
| messageActionGeoProximityReached | A user of the chat is now in proximity of another user |
| messageActionGroupCall | The group call has ended |
| messageActionInviteToGroupCall | A set of users was invited to the group call |
| messageActionSetMessagesTTL | The Time-To-Live of messages in this chat was changed. |
| messageActionGroupCallScheduled | A group call was scheduled |
| messageActionSetChatTheme | The chat theme was changed |
| messageActionChatJoinedByRequest | A user was accepted into the group by an admin |
| messageActionWebViewDataSentMe | Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message). |
| messageActionWebViewDataSent | Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message). Clients should display a service message with the text Data from the «$text» button was transferred to the bot. |
| messageActionGiftPremium | Info about a gifted Telegram Premium subscription This service message should be displayed below the appropriate sticker from the inputStickerSetPremiumGifts » stickerset »: - If months == 1, choose the sticker with emoji equal to "- If months == 3, choose the sticker with emoji equal to "- If months == 6, choose the sticker with emoji equal to "- If months == 12, choose the sticker with emoji equal to "- If months == 24, choose the sticker with emoji equal to "- Otherwise, fallback to the sticker with emoji equal to " |
| messageActionTopicCreate | A forum topic was created. |
| messageActionTopicEdit | Forum topic information was edited. |
| messageActionSuggestProfilePhoto | A new profile picture was suggested using photos.uploadContactProfilePhoto. |
| messageActionRequestedPeer | Contains info about one or more peers that the we (the user) shared with the bot after clicking on a keyboardButtonRequestPeer button (service message sent by the user). |
| messageActionSetChatWallPaper | The wallpaper » of the current chat was changed. |
| messageActionGiftCode | Contains a Telegram Premium giftcode link. |
| messageActionGiveawayLaunch | A giveaway was started. |
| messageActionGiveawayResults | A giveaway has ended. |
| messageActionBoostApply | Some boosts » were applied to the channel or supergroup. |
| messageActionRequestedPeerSentMe | Contains info about one or more peers that the a user shared with the me (the bot) after clicking on a keyboardButtonRequestPeer button (service message received by the bot). |
| messageActionPaymentRefunded | Describes a payment refund (service message received by both users and bots). |
| messageActionGiftStars | You gifted or were gifted some Telegram Stars. This service message should be displayed below the appropriate sticker from the inputStickerSetPremiumGifts » stickerset »: - If stars <= 1000, choose the sticker with emoji equal to "- If stars < 2500, choose the sticker with emoji equal to "- Otherwise, choose the sticker with emoji equal to " |
| messageActionPrizeStars | You won some Telegram Stars in a Telegram Star giveaway ». This service message should be displayed below the appropriate sticker from the inputStickerSetPremiumGifts » stickerset »: - If stars <= 1000, choose the sticker with emoji equal to "- If stars < 2500, choose the sticker with emoji equal to "- Otherwise, choose the sticker with emoji equal to " |
| messageActionStarGift | You received a gift, see here » for more info. |
| messageActionStarGiftUnique | A gift » was upgraded to a collectible gift ». |
| messageActionPaidMessagesRefunded | Sent from peer A to B, indicates that A refunded all stars B previously paid to send messages to A, see here » for more info on paid messages. |
| messageActionPaidMessagesPrice | The price of paid messages » in this chat was changed. |
| messageActionConferenceCall | Represents a conference call (or an invitation to a conference call, if neither the missed nor active flags are set).If call_requests_disabled is not set or false, an incoming messageActionConferenceCall with the missed and active flags not set should trigger ringing and an incoming call screen, just like for one-on-one calls. |
| messageActionTodoCompletions | Items were marked as completed or not completed in a todo list ». |
| messageActionTodoAppendTasks | Items were appended to the todo list ». |
| messageActionSuggestedPostApproval | A suggested post » was approved or rejected. |
| messageActionSuggestedPostSuccess | A suggested post » was successfully posted, and payment for it was successfully received. |
| messageActionSuggestedPostRefund | A suggested post » was accepted and posted or scheduled, but either the channel deleted the posted/scheduled post before stars_suggested_post_age_min seconds have elapsed, or the user refunded the payment for the stars used to pay for the suggested post. |
| messageActionGiftTon | You were gifted some toncoins. This service message should be displayed below the appropriate sticker from the inputStickerSetTonGifts » stickerset »: - If crypto_amount <= 10_000_000_000, choose the sticker with emoji equal to "- If crypto_amount <= 50_000_000_000, choose the sticker with emoji equal to "- Otherwise, choose the sticker with emoji equal to " |