Layer 220
Type

Available Constructors

In Gogram, this type is represented as tg.MessageAction interface. Use any of the following constructors:

MessageActionEmpty Empty constructor. MessageActionChatCreate Group created MessageActionChatEditTitle Group name changed. MessageActionChatEditPhoto Group profile changed MessageActionChatAddUser New member in the group MessageActionChannelCreate The channel was created MessageActionChatDeleteUser User left the group. MessageActionChatJoinedByLink A user joined the chat via an invite link MessageActionChatMigrateTo Indicates the chat was migrated to the specified supergroup MessageActionChannelMigrateFrom Indicates the channel was migrated from the specified chat MessageActionChatDeletePhoto Group profile photo removed. MessageActionPinMessage A message was pinned MessageActionGameScore Someone scored in a game MessageActionPaymentSentMe A user just sent a payment to me (a bot) MessageActionHistoryClear Chat history was cleared MessageActionPaymentSent A payment was sent MessageActionScreenshotTaken A screenshot of the chat was taken MessageActionPhoneCall A phone call MessageActionCustomAction Custom action (most likely not supported by the current layer, an upgrade might be needed) MessageActionSecureValuesSent Request for secure telegram passport values was sent MessageActionSecureValuesSentMe Secure telegram passport values were received MessageActionContactSignUp A contact just signed up to telegram MessageActionBotAllowed We have given the bot permission to send us direct messages. MessageActionInviteToGroupCall A set of users was invited to the group call MessageActionGroupCall The group call has ended MessageActionGeoProximityReached A user of the chat is now in proximity of another user 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 MessageActionTopicCreate A forum topic was created. MessageActionWebViewDataSent Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side servi MessageActionGiftPremium Info about a gifted Telegram Premium subscription MessageActionWebViewDataSentMe Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side servic MessageActionSuggestProfilePhoto A new profile picture was suggested using photos. upload Contact Profile Photo. MessageActionSetChatWallPaper The wallpaper of the current chat was changed. MessageActionTopicEdit Forum topic information was edited. MessageActionGiftCode Contains a Telegram Premium giftcode link. MessageActionRequestedPeer Contains info about one or more peers that the we (the user) shared with the bot after clicking on a MessageActionGiveawayResults A giveaway has ended. MessageActionGiveawayLaunch A giveaway was started. MessageActionGiftStars You gifted or were gifted some Telegram Stars. 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 MessageActionPaymentRefunded Describes a payment refund (service message received by both users and bots). MessageActionPaidMessagesRefunded Sent from peer A to B, indicates that A refunded all stars B previously paid to send messages to A, MessageActionPrizeStars You won some Telegram Stars in a Telegram Star giveaway. MessageActionStarGiftUnique A gift was upgraded to a collectible gift. MessageActionStarGift You received a gift, see here for more info. MessageActionTodoAppendTasks Items were appended to the todo list. MessageActionConferenceCall Represents a conference call (or an invitation to a conference call, if neither the missed nor activ MessageActionPaidMessagesPrice The price of paid messages in this chat was changed. MessageActionTodoCompletions Items were marked as completed or not completed in a todo list. 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/s MessageActionSuggestBirthday No description MessageActionSuggestedPostApproval A suggested post was approved or rejected. MessageActionStarGiftPurchaseOfferDeclined No description MessageActionGiftTon You were gifted some toncoins. MessageActionStarGiftPurchaseOffer No description

Gogram Example

// MessageAction is an interface type
// You can use any of the following constructors:
var _ tg.MessageAction = &tg.MessageActionEmpty{}
var _ tg.MessageAction = &tg.MessageActionChatCreate{}
var _ tg.MessageAction = &tg.MessageActionChatEditTitle{}
var _ tg.MessageAction = &tg.MessageActionChatEditPhoto{}
var _ tg.MessageAction = &tg.MessageActionChatAddUser{}
// ... and 55 more constructors