Available Types¶
All types listed here are available through the pyrogram.types package.
from pyrogram.types import User, Message, ...
Bot Keyboards¶
Contains information about a allowed bot. |
|
Contains information about a bot app. |
|
A bot business connection Information. |
|
A bot command with the standard slash "/" prefix. |
|
Represents the scope to which bot commands are applied. |
|
Represents the scope of bot commands, covering all group and supergroup chat administrators. |
|
Represents the scope of bot commands, covering all group and supergroup chats. |
|
Represents the scope of bot commands, covering all private chats. |
|
Represents the scope of bot commands, covering a specific chat. |
|
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat. |
|
Represents the scope of bot commands, covering a specific member of a group or supergroup chat. |
|
Represents the default scope of bot commands. |
|
A bot Information. |
|
Placeholder, currently holds no information. |
|
An incoming callback query from a callback button in an inline keyboard. |
|
Contains information about a collectible item and its last purchase. :Parameters: * purchase_date ( |
|
Object used to force clients to show a reply interface. |
|
One row of the high scores table for a game. |
|
One button of an inline keyboard. |
|
One button of the inline keyboard. |
|
An inline keyboard that appears right next to the message it belongs to. |
|
One button of the reply keyboard. |
|
Options for link preview generation in a message (Bot API style). |
|
Represents a parameter of the inline keyboard button used to automatically authorize a user. |
|
Represents a managed bot created by a manager bot. |
|
Describes the bot's menu button in a private chat. |
|
A menu button, which opens the bot's list of commands. |
|
Describes that no specific value for the menu button was set. |
|
A menu button, which launches a Web App. |
|
Describes an inline message to be sent by a user of a Mini App. |
|
A custom keyboard with reply options. |
|
Object used to tell clients to remove a bot keyboard. |
|
Object used to request clients to send a channel identifier. |
|
Object used to request clients to send a chat identifier. |
|
Criteria for requesting a managed bot creation via a keyboard button. |
|
Object used to request clients to send a user identifier. |
|
Contains information about a requested chat. |
|
Contains information about requested chats. |
|
Contains information about a requested user. |
|
Contains information about an inline message sent by a Web App on behalf of a user. |
|
Represents an inline button that switches the current user to inline mode in a chosen chat. |
|
Contains information about a Web App. |
Business¶
An incoming pre-checkout query from a buy button in an inline keyboard. |
|
Contains information about a shipping address. |
|
This object represents one shipping option. |
|
This object contains information about an incoming shipping query. |
Inline Mode¶
A result of an inline query chosen by the user and sent to their chat partner. |
|
An incoming inline query. |
|
One result of an inline query. |
|
Link to an animated GIF file. |
|
Link to an article or web page. |
|
Link to an audio file. |
|
A link to an animation file stored on the Telegram servers. |
|
A link to an MP3 audio file stored on the Telegram servers |
|
A link to a file stored on the Telegram servers. |
|
A link to a photo stored on the Telegram servers. |
|
A link to a sticker stored on the Telegram servers |
|
A link to a video file stored on the Telegram servers. |
|
A link to a voice message stored on the Telegram servers. |
|
Contact with a phone number |
|
Link to a file. |
|
A location on a map. |
|
Link to a photo. |
|
A venue. |
|
Link to a page containing an embedded video player or a video file. |
|
Link to a voice recording in an .OGG container encoded with OPUS. |
Input Media¶
Content of a media message to be sent. |
|
An animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent inside an album. |
|
Content of a media area to be included in story. |
|
A channel post media area. |
|
An audio to be sent inside an album. |
|
A generic file to be sent inside an album. |
|
A photo to be sent inside an album. |
|
A video to be sent inside an album. |
|
A Phone Contact to be added in your Telegram address book. |
Input Message Content¶
Content of a contact message to be sent as the result of an inline query. |
|
Content of an invoice message to be sent as the result of an inline query. |
|
Content of a location message to be sent as the result of an inline query. |
|
Content of a message to be sent as a result of an inline query. |
|
Contains information about a target replied message. |
|
Contains information about a target replied monoforum. |
|
Contains information about a target replied story. |
|
Content of a text message to be sent as the result of an inline query. |
|
Contains information about a todo task. |
|
Content of a venue message to be sent as the result of an inline query. |
Messages & Media¶
Describes an alternative reencoded quality of a video file. |
|
An animation file (GIF or H.264/MPEG-4 AVC video without sound). |
|
An audio file to be treated as music by the Telegram clients. |
|
Contains information about available effect. |
|
A service message about a chat theme. |
|
A service message about a chat wallpaper. |
|
A phone contact. |
|
A service message about a contact registered. |
|
A dice with a random value from 1 to 6 for currently supported base emoji. |
|
A generic file (as opposed to photos, voice messages, audio files, ...). |
|
Contains information about a story viewers. |
|
This object contains information about a message that is being replied to, which may come from another chat or forum topic. |
|
A game. |
|
A giveaway. |
|
A service message about a giveaway started in the channel. |
|
A giveaway result. |
|
A message sent inside a group call (live stream). |
|
A point on the map. |
|
Content of a media areas in story. |
|
A channel post media area. |
|
A coordinates of media area. |
|
A message. |
|
One special entity in a text message. |
|
This object describes the origin of a message. |
|
The message was originally sent to a channel chat. |
|
The message was originally sent on behalf of a chat to a group chat. |
|
The message was originally sent by an unknown user. |
|
Contains information about a message imported from a foreign chat service. |
|
The message was originally sent by a known user. |
|
Reactions to a message with anonymous reactions were changed. |
|
This object represents a change of a reaction on a message performed by a user. |
|
Contains information about a message reactions. |
|
Contains information about a message reactor. |
|
Contains information about a forwarded story. |
|
A Photo. |
|
A Poll. |
|
Contains information about one answer option in a poll. |
|
Contains information about a reaction. |
|
Contains information about a read participant. |
|
A service message about a screenshot taken. |
|
A sticker. |
|
A stickerset. |
|
A story privacy. |
|
A story. |
|
A story album (collection of stories). |
|
A deleted story. |
|
Contains information about origin of forwarded story. |
|
A skipped story. |
|
Contains information about a story viewers. |
|
A stripped thumbnail |
|
Describes manually or automatically chosen quote from another message. |
|
One size of a photo or a file/sticker thumbnail. |
|
A list of tasks. |
|
A task in a todo list. |
|
A todo task added to a todo list. |
|
One or more todo task/s has been flag as complete. |
|
One or more todo task/s has been flag as incomplete. |
|
Transcribes the audio of a voice message. |
|
A translated text with entities. |
|
A venue. |
|
A video file. |
|
A video note. |
|
A voice note. |
|
|
A wallpaper. |
A wallpaper settings. |
|
Contains data sent from a Web App to the bot. |
|
A webpage preview |
|
A webpage preview |
|
A web page preview. |
Payments¶
A single bid level in a star gift auction. |
|
Contains checked gift code data. |
|
A ExtendedMediaPreview. |
|
A star gift. |
|
Contains information about a star gift attribute. |
|
A service message about a gift code. |
|
Telegram Premium was gifted to the user |
|
Content of a stars transaction. |
|
Contains information about an Invoice. |
|
This object represents a price for goods or services. |
|
A PaidMedia. |
|
A PaidMessagePriceChanged. |
|
This object contains basic information about an payment form. |
|
Contains information about a payment. |
|
Contains information about a refunded payment. |
|
This object represents information about purchased paid media. |
|
One round of a star gift auction. |
|
The full state of an ongoing star gift auction. |
|
The current user's state in an auction. |
|
A collection of star gifts belonging to a user or channel. |
|
The Stars rating of a user or channel. |
|
Contains information about stars status. |
|
Contains information about stars transaction. |
|
Contains information about a successful payment. |
Pyromod¶
A dataclass that serves as a utility for matching listeners to the data of updates. |
|
|
Designed to manage and handle different types of listeners used in pyromod. |
Users & Chats¶
User Date of birth. |
|
Information about bot verification. |
|
Business information of a user. |
|
Business working hours. |
|
Business recipients. |
|
Business weekly open hours. |
|
Business working hours. |
|
A chat. |
|
Represents a chat administrator that has created invite links in a chat. |
|
Reply or profile color status. |
|
A chat event from the recent actions log (also known as admin log). |
|
|
Set of filters used to obtain a chat event log. |
An invite link for a chat. |
|
Represents a join request sent to a chat. |
|
A service message about a user join request approved in the chat. |
|
Contains information about a joiner member of a chat. |
|
Contains information about one member of a chat. |
|
Represents changes in the status of a chat member. |
|
Describes actions that a non-administrator user is allowed to take in a chat. |
|
A chat photo. |
|
A chat preview. |
|
Describes privileged actions an administrator is able to take in a chat. |
|
A chat reactions |
|
Peer/chat settings returned by |
|
A user's dialog. |
|
A user emoji status. |
|
A user's folder. |
|
A forum topic. |
|
A service message about a forum topic closed in the chat. |
|
A service message about a new forum topic created in the chat. |
|
A deleted forum topic. |
|
A service message about a forum topic renamed in the chat. |
|
A service message about a forum topic reopened in the chat. |
|
A service message about a general topic hidden in the chat. |
|
A service message about a general topic unhidden in the chat. |
|
Contains information about one member of a group call. |
|
The date and user of when someone has joined with an invite link. |
|
A PeerChannel. |
|
A PeerUser. |
|
A restriction applied to bots or chats. |
|
A Telegram user or bot. |
|
A Username. |
|
A service message about a voice chat ended in the chat. |
|
A service message about new members invited to a voice chat. |
|
A service message about a voice chat scheduled in the chat. |
|
A service message about a voice chat started in the chat. |