Layer 224
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 MessageActionChatJoinedByLink A user joined the chat via an invite link MessageActionChatAddUser New member in the group MessageActionChatDeletePhoto Group profile photo removed. MessageActionChatDeleteUser User left the group. MessageActionChatMigrateTo Indicates the chat was migrated to the specified supergroup MessageActionChannelCreate The channel was created MessageActionChannelMigrateFrom Indicates the channel was migrated from the specified chat MessageActionPinMessage A message was pinned MessageActionHistoryClear Chat history was cleared MessageActionPaymentSentMe A user just sent a payment to me (a bot) MessageActionGameScore Someone scored in a game 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) MessageActionSecureValuesSentMe Secure telegram passport values were received MessageActionBotAllowed We have given the bot permission to send us direct messages. 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 MessageActionSetMessagesTtl The Time-To-Live of messages in this chat was changed. MessageActionInviteToGroupCall A set of users was invited to the group call MessageActionGroupCallScheduled A group call was scheduled MessageActionSetChatTheme The chat theme was changed MessageActionWebViewDataSentMe Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side servic MessageActionChatJoinedByRequest A user was accepted into the group by an admin 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 MessageActionSuggestProfilePhoto A new profile picture was suggested using photos. upload Contact Profile Photo. MessageActionRequestedPeer Contains info about one or more peers that the we (the user) shared with the bot after clicking on a MessageActionTopicCreate A forum topic was created. MessageActionTopicEdit Forum topic information was edited. MessageActionSetChatWallPaper The wallpaper of the current chat was changed. MessageActionGiveawayLaunch A giveaway was started. MessageActionGiftCode Contains a Telegram Premium giftcode link. MessageActionGiveawayResults A giveaway has ended. 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). MessageActionPrizeStars You won some Telegram Stars in a Telegram Star giveaway. MessageActionBoostApply Some boosts were applied to the channel or supergroup. MessageActionStarGift You received a gift, see here for more info. MessageActionGiftStars You gifted or were gifted some Telegram Stars. 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, 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 activ MessageActionSuggestedPostApproval A suggested post was approved or rejected. MessageActionTodoAppendTasks Items were appended to the todo list. MessageActionSuggestedPostRefund A suggested post was accepted and posted or scheduled, but either the channel deleted the posted/s MessageActionSuggestedPostSuccess A suggested post was successfully posted, and payment for it was successfully received. MessageActionTodoCompletions Items were marked as completed or not completed in a todo list. MessageActionSuggestBirthday A new birthday was suggested using users. suggest Birthday, see here for more info on birthdays in MessageActionStarGiftPurchaseOfferDeclined Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 – MessageActionNewCreatorPending Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 – MessageActionChangeCreator Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 – MessageActionStarGiftPurchaseOffer Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 – MessageActionGiftTon You were gifted some toncoins. MessageActionNoForwardsToggle Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 – MessageActionNoForwardsRequest Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 – MessageActionPollAppendAnswer No description MessageActionPollDeleteAnswer No description MessageActionManagedBotCreated 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.MessageActionChatJoinedByLink{}
// ... and 62 more constructors