Types#
High-level Python objects that represent Telegram entities.
All types are found in the ftmgram.types namespace.
from ftmgram.types import Message, User, Chat
Core Types#
Type |
Description |
|---|---|
|
A single Telegram message |
|
A Telegram user or bot |
|
A private chat, group, supergroup or channel |
|
A member of a chat |
|
Permissions available in a chat |
|
An entry in the dialog list |
Media Types#
Type |
Description |
|---|---|
|
A photo |
|
A video file |
|
An audio file |
|
A generic document / file |
|
A GIF or animation |
|
A sticker |
|
A voice note |
|
A round video message |
|
A geographic location |
|
A phone contact |
|
A poll |
|
A venue/place |
|
A game |
|
A payment invoice |
|
A successful payment result |
Rich Messages — Bot API 10.1#
Type |
Description |
|---|---|
|
A received rich/article message |
|
Input object for sending rich messages |
|
Builder for rich message content blocks |
|
Base class + factory for inline text types |
|
Bold text |
|
Italic text |
|
Underlined text |
|
Strikethrough text |
|
Inline |
|
A hyperlink |
|
Clickable email address |
|
Clickable phone number |
|
Highlighted/marked text |
|
Subscript text |
|
Superscript text |
|
Named anchor |
|
Link to a named anchor |
|
A paragraph block |
|
An inline photo block |
|
An inline video block |
|
An audio player block |
|
A data table block |
|
Ordered or unordered list block |
|
Multi-image slideshow block |
|
Photo collage block |
|
Block quote |
|
Code / preformatted block |
|
Section heading |
|
Horizontal divider |
|
Footer text block |
Checklists — Bot API 10.1#
Type |
Description |
|---|---|
|
A received checklist message |
|
An individual checklist task |
|
Input for creating a new task |
Link Media — Bot API 10.1#
Type |
Description |
|---|---|
|
A link attached to a poll option or message |
Join Requests#
Type |
Description |
|---|---|
|
A chat join request with optional |
Keyboards & Inline#
Type |
Description |
|---|---|
|
An inline keyboard |
|
A single inline button |
|
A reply keyboard |
|
A single reply keyboard button |
|
Remove reply keyboard |
|
Force a reply from the user |
|
An incoming callback query |
|
An incoming inline query |