MessageAction#

class pyrogram.raw.base.MessageAction#

Object describing actions connected to a service message.

Constructors:

This base type has 60 constructors available.

MessageActionBoostApply

Some boosts were applied to the channel or supergroup.

MessageActionBotAllowed

We have given the bot permission to send us direct messages.

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 a conference call, if neither the missed nor active flags are set).

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 This service message should be displayed below the appropriate sticker from the inputStickerSetPremiumGifts stickerset :

MessageActionGiftStars

You gifted or were gifted some Telegram Stars.

MessageActionGiftTon

You were gifted some toncoins.

MessageActionGiveawayLaunch

A giveaway was started.

MessageActionGiveawayResults

A giveaway has ended.

MessageActionGroupCall

The group call has ended

MessageActionGroupCallScheduled

A group call was scheduled

MessageActionHistoryClear

Chat history was cleared

MessageActionInviteToGroupCall

A set of users was invited to the group call

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, see here for more info on paid messages.

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

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 keyboardButtonRequestPeer button (service message sent by the user).

MessageActionRequestedPeerSentMe

Contains 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).

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

Constructor of MessageAction.

MessageActionStarGiftPurchaseOfferDeclined

Constructor of MessageAction.

MessageActionStarGiftUnique

A gift was upgraded to a collectible gift .

MessageActionSuggestBirthday

Constructor of MessageAction.

MessageActionSuggestProfilePhoto

A new profile picture was suggested using photos.uploadContactProfilePhoto.

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/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.

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 service message).

MessageActionWebViewDataSentMe

Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).