MessageAction #

Object describing actions connected to a service message.

Layer 223

messageActionEmpty#b6aef7b0 = MessageAction;
messageActionChatCreate#bd47cbad title:string users:Vector<long> = MessageAction;
messageActionChatEditTitle#b5a1ce5a title:string = MessageAction;
messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction;
messageActionChatDeletePhoto#95e3fbef = MessageAction;
messageActionChatAddUser#15cefd00 users:Vector<long> = MessageAction;
messageActionChatDeleteUser#a43f30cc user_id:long = MessageAction;
messageActionChatJoinedByLink#31224c3 inviter_id:long = MessageAction;
messageActionChannelCreate#95d2ac92 title:string = MessageAction;
messageActionChatMigrateTo#e1037f92 channel_id:long = MessageAction;
messageActionChannelMigrateFrom#ea3948e9 title:string chat_id:long = MessageAction;
messageActionPinMessage#94bd38ed = MessageAction;
messageActionHistoryClear#9fbab604 = MessageAction;
messageActionGameScore#92a72876 game_id:long score:int = MessageAction;
messageActionPaymentSentMe#ffa00ccc flags:# recurring_init:flags.2?true recurring_used:flags.3?true currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge subscription_until_date:flags.4?int = MessageAction;
messageActionPaymentSent#c624b16e flags:# recurring_init:flags.2?true recurring_used:flags.3?true currency:string total_amount:long invoice_slug:flags.0?string subscription_until_date:flags.4?int = 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#c516d679 flags:# attach_menu:flags.1?true from_request:flags.3?true domain:flags.0?string app:flags.2?BotApp = MessageAction;
messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;
messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;
messageActionContactSignUp#f3f25f76 = MessageAction;
messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;
messageActionGroupCall#7a0d7f42 flags:# call:InputGroupCall duration:flags.0?int = MessageAction;
messageActionInviteToGroupCall#502f92f7 call:InputGroupCall users:Vector<long> = MessageAction;
messageActionSetMessagesTTL#3c134d7b flags:# period:int auto_setting_from:flags.0?long = MessageAction;
messageActionGroupCallScheduled#b3a07661 call:InputGroupCall schedule_date:int = MessageAction;
messageActionSetChatTheme#b91bbd3a theme:ChatTheme = MessageAction;
messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
messageActionWebViewDataSentMe#47dd8079 text:string data:string = MessageAction;
messageActionWebViewDataSent#b4c38cb5 text:string = MessageAction;
messageActionGiftPremium#48e91302 flags:# currency:string amount:long days:int crypto_currency:flags.0?string crypto_amount:flags.0?long message:flags.1?TextWithEntities = MessageAction;
messageActionTopicCreate#d999256 flags:# title_missing:flags.1?true title:string icon_color:int icon_emoji_id:flags.0?long = MessageAction;
messageActionTopicEdit#c0944820 flags:# title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = MessageAction;
messageActionSuggestProfilePhoto#57de635e photo:Photo = MessageAction;
messageActionRequestedPeer#31518e9b button_id:int peers:Vector<Peer> = MessageAction;
messageActionSetChatWallPaper#5060a3f4 flags:# same:flags.0?true for_both:flags.1?true wallpaper:WallPaper = MessageAction;
messageActionGiftCode#31c48347 flags:# via_giveaway:flags.0?true unclaimed:flags.5?true boost_peer:flags.1?Peer days:int slug:string currency:flags.2?string amount:flags.2?long crypto_currency:flags.3?string crypto_amount:flags.3?long message:flags.4?TextWithEntities = MessageAction;
messageActionGiveawayLaunch#a80f51e4 flags:# stars:flags.0?long = MessageAction;
messageActionGiveawayResults#87e2f155 flags:# stars:flags.0?true winners_count:int unclaimed_count:int = MessageAction;
messageActionBoostApply#cc02aa6d boosts:int = MessageAction;
messageActionRequestedPeerSentMe#93b31848 button_id:int peers:Vector<RequestedPeer> = MessageAction;
messageActionPaymentRefunded#41b3e202 flags:# peer:Peer currency:string total_amount:long payload:flags.0?bytes charge:PaymentCharge = MessageAction;
messageActionGiftStars#45d5b021 flags:# currency:string amount:long stars:long crypto_currency:flags.0?string crypto_amount:flags.0?long transaction_id:flags.1?string = MessageAction;
messageActionPrizeStars#b00c47a2 flags:# unclaimed:flags.0?true stars:long transaction_id:string boost_peer:Peer giveaway_msg_id:int = MessageAction;
messageActionStarGift#ea2c31d3 flags:# name_hidden:flags.0?true saved:flags.2?true converted:flags.3?true upgraded:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true prepaid_upgrade:flags.13?true upgrade_separate:flags.16?true auction_acquired:flags.17?true gift:StarGift message:flags.1?TextWithEntities convert_stars:flags.4?long upgrade_msg_id:flags.5?int upgrade_stars:flags.8?long from_id:flags.11?Peer peer:flags.12?Peer saved_id:flags.12?long prepaid_upgrade_hash:flags.14?string gift_msg_id:flags.15?int to_id:flags.18?Peer gift_num:flags.19?int = MessageAction;
messageActionStarGiftUnique#e6c31522 flags:# upgrade:flags.0?true transferred:flags.1?true saved:flags.2?true refunded:flags.5?true prepaid_upgrade:flags.11?true assigned:flags.13?true from_offer:flags.14?true craft:flags.16?true gift:StarGift can_export_at:flags.3?int transfer_stars:flags.4?long from_id:flags.6?Peer peer:flags.7?Peer saved_id:flags.7?long resale_amount:flags.8?StarsAmount can_transfer_at:flags.9?int can_resell_at:flags.10?int drop_original_details_stars:flags.12?long can_craft_at:flags.15?int = MessageAction;
messageActionPaidMessagesRefunded#ac1f1fcd count:int stars:long = MessageAction;
messageActionPaidMessagesPrice#84b88578 flags:# broadcast_messages_allowed:flags.0?true stars:long = MessageAction;
messageActionConferenceCall#2ffe2f7a flags:# missed:flags.0?true active:flags.1?true video:flags.4?true call_id:long duration:flags.2?int other_participants:flags.3?Vector<Peer> = MessageAction;
messageActionTodoCompletions#cc7c5c89 completed:Vector<int> incompleted:Vector<int> = MessageAction;
messageActionTodoAppendTasks#c7edbc83 list:Vector<TodoItem> = MessageAction;
messageActionSuggestedPostApproval#ee7a1596 flags:# rejected:flags.0?true balance_too_low:flags.1?true reject_comment:flags.2?string schedule_date:flags.3?int price:flags.4?StarsAmount = MessageAction;
messageActionSuggestedPostSuccess#95ddcf69 price:StarsAmount = MessageAction;
messageActionSuggestedPostRefund#69f916f8 flags:# payer_initiated:flags.0?true = MessageAction;
messageActionGiftTon#a8a3c699 flags:# currency:string amount:long crypto_currency:string crypto_amount:long transaction_id:flags.0?string = MessageAction;
messageActionSuggestBirthday#2c8f2a25 birthday:Birthday = MessageAction;
messageActionStarGiftPurchaseOffer#774278d4 flags:# accepted:flags.0?true declined:flags.1?true gift:StarGift price:StarsAmount expires_at:int = MessageAction;
messageActionStarGiftPurchaseOfferDeclined#73ada76b flags:# expired:flags.0?true gift:StarGift price:StarsAmount = MessageAction;
messageActionNewCreatorPending#b07ed085 new_creator_id:long = MessageAction;
messageActionChangeCreator#e188503b new_creator_id:long = MessageAction;
messageActionNoForwardsToggle#bf7d6572 prev_value:Bool new_value:Bool = MessageAction;
messageActionNoForwardsRequest#3e2793ba flags:# expired:flags.0?true prev_value:Bool new_value:Bool = MessageAction;

Constructors #

ConstructorDescription
messageActionEmptyEmpty constructor.
messageActionChatCreateGroup created
messageActionChatEditTitleGroup name changed.
messageActionChatEditPhotoGroup profile changed
messageActionChatDeletePhotoGroup profile photo removed.
messageActionChatAddUserNew member in the group
messageActionChatDeleteUserUser left the group.
messageActionChatJoinedByLinkA user joined the chat via an invite link
messageActionChannelCreateThe channel was created
messageActionChatMigrateToIndicates the chat was migrated to the specified supergroup
messageActionChannelMigrateFromIndicates the channel was migrated from the specified chat
messageActionPinMessageA message was pinned
messageActionHistoryClearChat history was cleared
messageActionGameScoreSomeone scored in a game
messageActionPaymentSentMeA user just sent a payment to me (a bot)
messageActionPaymentSentA payment was sent
messageActionPhoneCallA phone call
messageActionScreenshotTakenA screenshot of the chat was taken
messageActionCustomActionCustom action (most likely not supported by the current layer, an upgrade might be needed)
messageActionBotAllowedWe have given the bot permission to send us direct messages.

The optional fields specify how did we authorize the bot to send us messages.
messageActionSecureValuesSentMeSecure telegram passport values were received
messageActionSecureValuesSentRequest for secure telegram passport values was sent
messageActionContactSignUpA contact just signed up to telegram
messageActionGeoProximityReachedA user of the chat is now in proximity of another user
messageActionGroupCallA video chat/livestream was started or terminated.
messageActionInviteToGroupCallA set of users was invited to a video chat/livestream ».
messageActionSetMessagesTTLThe Time-To-Live of messages in this chat was changed.
messageActionGroupCallScheduledA video chat/livestream was scheduled.
messageActionSetChatThemeThe chat theme was changed
messageActionChatJoinedByRequestA user was accepted into the group by an admin
messageActionWebViewDataSentMeData from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).
messageActionWebViewDataSentData 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.
messageActionGiftPremiumInfo 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 "1️⃣"
- If months == 3, choose the sticker with emoji equal to "2️⃣"
- If months == 6, choose the sticker with emoji equal to "3️⃣"
- If months == 12, choose the sticker with emoji equal to "4️⃣"
- If months == 24, choose the sticker with emoji equal to "5️⃣"
- Otherwise, fallback to the sticker with emoji equal to "1️⃣"
messageActionTopicCreateA forum topic was created.
messageActionTopicEditForum topic information was edited.
messageActionSuggestProfilePhotoA new profile picture was suggested using photos.uploadContactProfilePhoto.
messageActionRequestedPeerContains 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).
messageActionSetChatWallPaperThe wallpaper » of the current chat was changed.
messageActionGiftCodeContains a Telegram Premium giftcode link.
messageActionGiveawayLaunchA giveaway was started.
messageActionGiveawayResultsA giveaway has ended.
messageActionBoostApplySome boosts » were applied to the channel or supergroup.
messageActionRequestedPeerSentMeContains 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).
messageActionPaymentRefundedDescribes a payment refund (service message received by both users and bots).
messageActionGiftStarsYou 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 "2️⃣"
- If stars < 2500, choose the sticker with emoji equal to "3️⃣"
- Otherwise, choose the sticker with emoji equal to "4️⃣"
messageActionPrizeStarsYou 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 "2️⃣"
- If stars < 2500, choose the sticker with emoji equal to "3️⃣"
- Otherwise, choose the sticker with emoji equal to "4️⃣"
messageActionStarGiftYou received a gift, see here » for more info.
messageActionStarGiftUniqueA gift » was upgraded to a collectible gift ».
messageActionPaidMessagesRefundedSent 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.
messageActionPaidMessagesPriceThe price of paid messages » in this chat was changed.
messageActionConferenceCallRepresents a conference call », or an invitation to one 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.
messageActionTodoCompletionsItems were marked as completed or not completed in a todo list ».
messageActionTodoAppendTasksItems were appended to the todo list ».
messageActionSuggestedPostApprovalA suggested post » was approved or rejected.
messageActionSuggestedPostSuccessA suggested post » was successfully posted, and payment for it was successfully received.
messageActionSuggestedPostRefundA 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.
messageActionGiftTonYou were gifted some Grams.

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 "2️⃣"
- If crypto_amount <= 50_000_000_000, choose the sticker with emoji equal to "1️⃣"
- Otherwise, choose the sticker with emoji equal to "3️⃣"
messageActionSuggestBirthdayA new birthday was suggested using users.suggestBirthday, see here » for more info on birthdays in the API.
messageActionStarGiftPurchaseOfferContains an offer to purchase a collectible gift », see here » for the full flow.
messageActionStarGiftPurchaseOfferDeclinedA collectible gift purchase offer » was declined, or the offer expired, see here » for the full flow.
messageActionNewCreatorPendingService message: emitted to a supergroup when the group/channel creator leaves the group », indicating that ownership transfer is pending. The new_creator_id user will become the new owner after 7 days if the old owner does not rejoin.

Sent from the user ID of the old owner.
messageActionChangeCreatorService message: emitted to a supergroup when ownership transfer completes after the old owner left the group » (7 days after the old owner left without rejoining), indicating that ownership has been transferred to a new owner.

Sent from the user ID of the old owner.
messageActionNoForwardsToggleEmitted only in private chats when enabling or disabling content protection ».
messageActionNoForwardsRequestEmitted only in private chats if the other side requested to disable content protection ».
messageActionPollAppendAnswerA new answer option was added to an open-answer poll »
messageActionPollDeleteAnswerAn answer option was removed from an open-answer poll »
messageActionManagedBotCreatedService message sent by a user to a manager bot when a new managed bot » is created through it, by invoking messages.sendBotRequestedPeer with a requestPeerTypeCreateBot, see here » for more info.