Enums#
Enumeration types used across the FTMGram API.
All enums are in ftmgram.enums.
from ftmgram.enums import MessageMediaType, ChatType, ParseMode
ChatType#
The type of a Chat.
Value |
Description |
|---|---|
|
Direct message / private chat |
|
Legacy group |
|
Supergroup |
|
Broadcast channel |
|
Bot DM |
MessageMediaType#
The type of media attached to a Message.
Value |
Description |
|---|---|
|
Audio file |
|
Generic document |
|
Photo |
|
Sticker |
|
Video |
|
GIF or animation |
|
Voice note |
|
Round video |
|
Contact card |
|
Location pin |
|
Venue/place |
|
Poll |
|
Dice |
|
Link preview |
|
Giveaway |
|
Invoice / Stars purchase |
|
Checklist (Bot API 10.1) |
|
Link poll media (Bot API 10.1) |
ParseMode#
Controls how message text is parsed.
Value |
Description |
|---|---|
|
FTMGram Markdown syntax (default) |
|
HTML tags ( |
|
No parsing — plain text only |
ChatMemberStatus#
The status of a member within a chat.
Value |
Description |
|---|---|
|
Chat creator |
|
Admin |
|
Regular member |
|
Restricted member |
|
Left the chat |
|
Banned / kicked |
StorageType#
Backend storage type for sessions.
Value |
Description |
|---|---|
|
SQLite file-based storage (default) |
|
In-memory storage (ephemeral) |