MessageAction#
- class pyrogram.raw.base.MessageAction#
Object describing actions connected to a service message.
- Constructors:
This base type has 67 constructors available.
Some boosts were applied to the channel or supergroup.
We have given the bot permission to send us direct messages.
Service message: emitted to a supergroup when ownership transfer completes after the old owner left the group (7 days after the old owner left without rejoining), indicating that ownership has been transferred to a new owner.
The channel was created
Indicates the channel was migrated from the specified chat
New member in the group
Group created
Group profile photo removed.
User left the group.
Group profile changed
Group name changed.
A user joined the chat via an invite link
A user was accepted into the group by an admin
Indicates the chat was migrated to the specified supergroup
Represents a conference call, or an invitation to one if neither the missed nor active flags are set.
A contact just signed up to telegram
Custom action (most likely not supported by the current layer, an upgrade might be needed)
Empty constructor.
Someone scored in a game
A user of the chat is now in proximity of another user
Contains a Telegram Premium giftcode link.
Info about a gifted Telegram Premium subscription This service message should be displayed below the appropriate sticker from the inputStickerSetPremiumGifts stickerset:
You gifted or were gifted some Telegram Stars.
You were gifted some Grams.
A giveaway was started.
A giveaway has ended.
A video chat/livestream was started or terminated.
A video chat/livestream was scheduled.
Chat history was cleared
A set of users was invited to a video chat/livestream.
Service message sent by a user to a manager bot when a new managed bot is created through it, by invoking messages.sendBotRequestedPeer with a requestPeerTypeCreateBot, see here for more info.
Service message: emitted to a supergroup when the group/channel creator leaves the group, indicating that ownership transfer is pending.
Emitted only in private chats if the other side requested to disable content protection.
Emitted only in private chats when enabling or disabling content protection.
The price of paid messages in this chat was changed.
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.
Describes a payment refund (service message received by both users and bots).
A payment was sent
A user just sent a payment to me (a bot)
A phone call
A message was pinned
A new answer option was added to an open-answer poll
An answer option was removed from an open-answer poll
You won some Telegram Stars in a Telegram Star giveaway.
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).
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).
A screenshot of the chat was taken
Request for secure telegram passport values was sent
Secure telegram passport values were received
The chat theme was changed
The wallpaper of the current chat was changed.
The Time-To-Live of messages in this chat was changed.
You received a gift, see here for more info.
Contains an offer to purchase a collectible gift, see here for the full flow.
A collectible gift purchase offer was declined, or the offer expired, see here for the full flow.
A gift was upgraded to a collectible gift.
A new birthday was suggested using users.suggestBirthday, see here for more info on birthdays in the API.
A new profile picture was suggested using photos.uploadContactProfilePhoto.
A suggested post was approved or rejected.
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.
A suggested post was successfully posted, and payment for it was successfully received.
Items were appended to the todo list.
Items were marked as completed or not completed in a todo list.
A forum topic was created.
Forum topic information was edited.
Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message).
Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).