Layer 224
Type

Available Constructors

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

MessageActionEmpty Empty constructor. MessageActionChatEditTitle Group name changed. MessageActionChatDeletePhoto Group profile photo removed. MessageActionChatEditPhoto Group profile changed MessageActionChatCreate Group created MessageActionChatJoinedByLink A user joined the chat via an invite link MessageActionChatDeleteUser User left the group. MessageActionChannelCreate The channel was created MessageActionChatAddUser New member in the group MessageActionChannelMigrateFrom Indicates the channel was migrated from the specified chat MessageActionPaymentSentMe A user just sent a payment to me (a bot) MessageActionGameScore Someone scored in a game MessageActionChatMigrateTo Indicates the chat was migrated to the specified supergroup MessageActionHistoryClear Chat history was cleared MessageActionPaymentSent A payment was sent MessageActionPinMessage A message was pinned MessageActionPhoneCall A phone call MessageActionCustomAction Custom action (most likely not supported by the current layer, an upgrade might be needed) MessageActionScreenshotTaken A screenshot of the chat was taken 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 MessageActionSecureValuesSentMe Secure telegram passport values were received MessageActionGroupCall The group call has ended MessageActionInviteToGroupCall A set of users was invited to the group call MessageActionGroupCallScheduled A group call was scheduled MessageActionSetMessagesTtl The Time-To-Live of messages in this chat was changed. 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 MessageActionGiftPremium Info about a gifted Telegram Premium subscription MessageActionTopicEdit Forum topic information was edited. MessageActionTopicCreate A forum topic was created. MessageActionSetChatWallPaper The wallpaper of the current chat was changed. MessageActionSuggestProfilePhoto A new profile picture was suggested using photos. upload Contact Profile Photo. 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 MessageActionGiveawayLaunch A giveaway was started. MessageActionGiveawayResults A giveaway has ended. MessageActionWebViewDataSent Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side servi MessageActionBoostApply Some boosts were applied to the channel or supergroup. MessageActionPaymentRefunded Describes a payment refund (service message received by both users and bots). MessageActionGiftStars You gifted or were gifted some Telegram Stars. MessageActionPrizeStars You won some Telegram Stars in a Telegram Star giveaway. MessageActionRequestedPeerSentMe Contains info about one or more peers that the a user shared with the me (the bot) after clicking on 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, 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 MessageActionTodoCompletions Items were marked as completed or not completed in a todo list. MessageActionSuggestedPostApproval A suggested post was approved or rejected. MessageActionTodoAppendTasks Items were appended to the todo list. MessageActionSuggestedPostSuccess A suggested post was successfully posted, and payment for it was successfully received. MessageActionSuggestBirthday Birthday suggestion action MessageActionGiftTon You were gifted some toncoins. MessageActionStarGiftPurchaseOffer Star gift purchase offer MessageActionSuggestedPostRefund A suggested post was accepted and posted or scheduled, but either the channel deleted the posted/s MessageActionStarGiftPurchaseOfferDeclined Star gift offer declined MessageActionPhoneNumberRequest Phone number requested MessageActionUserJoined User joined via invite link MessageActionUserUpdatedPhoto User updated profile photo MessageActionTtlChange Message TTL changed MessageActionLoginUnknownLocation Login from unknown location MessageActionCreatedBroadcastList Broadcast list created MessageActionNewCreatorPending Pending creator transfer MessageActionChangeCreator Creator changed in group/channel

Gogram Example

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