Layer 227
MessageAction
Abstract type representing one of 67 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.MessageAction interface.
Use any of the following constructors:
MessageActionBoostApply
Some boosts were applied to the channel or supergroup.
MessageActionBotAllowed
We have given the bot permission to send us direct messages.
MessageActionChangeCreator
Service message: emitted to a supergroup when ownership transfer completes after the old owner left
MessageActionChannelCreate
The channel was created
MessageActionChannelMigrateFrom
Indicates the channel was migrated from the specified chat
MessageActionChatAddUser
New member in the group
MessageActionChatCreate
Group created
MessageActionChatDeletePhoto
Group profile photo removed.
MessageActionChatDeleteUser
User left the group.
MessageActionChatEditPhoto
Group profile changed
MessageActionChatEditTitle
Group name changed.
MessageActionChatJoinedByLink
A user joined the chat via an invite link
MessageActionChatJoinedByRequest
A user was accepted into the group by an admin
MessageActionChatMigrateTo
Indicates the chat was migrated to the specified supergroup
MessageActionConferenceCall
Represents a conference call, or an invitation to one if neither the missed nor active flags are
MessageActionContactSignUp
A contact just signed up to telegram
MessageActionCustomAction
Custom action (most likely not supported by the current layer, an upgrade might be needed)
MessageActionEmpty
Empty constructor.
MessageActionGameScore
Someone scored in a game
MessageActionGeoProximityReached
A user of the chat is now in proximity of another user
MessageActionGiftCode
Contains a Telegram Premium giftcode link.
MessageActionGiftPremium
Info about a gifted Telegram Premium subscription
MessageActionGiftStars
You gifted or were gifted some Telegram Stars.
MessageActionGiftTon
You were gifted some Grams.
MessageActionGiveawayLaunch
A giveaway was started.
MessageActionGiveawayResults
A giveaway has ended.
MessageActionGroupCall
A video chat/livestream was started or terminated.
MessageActionGroupCallScheduled
A video chat/livestream was scheduled.
MessageActionHistoryClear
Chat history was cleared
MessageActionInviteToGroupCall
A set of users was invited to a video chat/livestream.
MessageActionManagedBotCreated
Service message sent by a user to a manager bot when a new managed bot is created through it, by i
MessageActionNewCreatorPending
Service message: emitted to a supergroup when the group/channel creator leaves the group, indicat
MessageActionNoForwardsRequest
Emitted only in private chats if the other side requested to disable content protection.
MessageActionNoForwardsToggle
Emitted only in private chats when enabling or disabling content protection.
MessageActionPaidMessagesPrice
The price of paid messages in this chat was changed.
MessageActionPaidMessagesRefunded
Sent from peer A to B, indicates that A refunded all stars B previously paid to send messages to A,
MessageActionPaymentRefunded
Describes a payment refund (service message received by both users and bots).
MessageActionPaymentSent
A payment was sent
MessageActionPaymentSentMe
A user just sent a payment to me (a bot)
MessageActionPhoneCall
A phone call
MessageActionPinMessage
A message was pinned
MessageActionPollAppendAnswer
A new answer option was added to an open-answer poll
MessageActionPollDeleteAnswer
An answer option was removed from an open-answer poll
MessageActionPrizeStars
You won some Telegram Stars in a Telegram Star giveaway.
MessageActionRequestedPeer
Contains info about one or more peers that the we (the user) shared with the bot after clicking on a
MessageActionRequestedPeerSentMe
Contains info about one or more peers that the a user shared with the me (the bot) after clicking on
MessageActionScreenshotTaken
A screenshot of the chat was taken
MessageActionSecureValuesSent
Request for secure telegram passport values was sent
MessageActionSecureValuesSentMe
Secure telegram passport values were received
MessageActionSetChatTheme
The chat theme was changed
MessageActionSetChatWallPaper
The wallpaper of the current chat was changed.
MessageActionSetMessagesTtl
The Time-To-Live of messages in this chat was changed.
MessageActionStarGift
You received a gift, see here for more info.
MessageActionStarGiftPurchaseOffer
Contains an offer to purchase a collectible gift, see here for the full flow.
MessageActionStarGiftPurchaseOfferDeclined
A collectible gift purchase offer was declined, or the offer expired, see here for the full flow
MessageActionStarGiftUnique
A gift was upgraded to a collectible gift.
MessageActionSuggestBirthday
A new birthday was suggested using users. suggest Birthday, see here for more info on birthdays in
MessageActionSuggestProfilePhoto
A new profile picture was suggested using photos. upload Contact Profile Photo.
MessageActionSuggestedPostApproval
A suggested post was approved or rejected.
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.
MessageActionTodoAppendTasks
Items were appended to the todo list.
MessageActionTodoCompletions
Items were marked as completed or not completed in a todo list.
MessageActionTopicCreate
A forum topic was created.
MessageActionTopicEdit
Forum topic information was edited.
MessageActionWebViewDataSent
Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side servi
MessageActionWebViewDataSentMe
Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side servic
Gogram Example
// MessageAction is an interface type // You can use any of the following constructors: var _ tg.MessageAction = &tg.MessageActionBoostApply{} var _ tg.MessageAction = &tg.MessageActionBotAllowed{} var _ tg.MessageAction = &tg.MessageActionChangeCreator{} var _ tg.MessageAction = &tg.MessageActionChannelCreate{} var _ tg.MessageAction = &tg.MessageActionChannelMigrateFrom{} // ... and 62 more constructors