Skip to main content

Crate tg

Crate tg 

Source

Enums§

TelegramDestination
Telegram destination for sending messages.
TopLevelId
Top-level identifier for a Telegram channel or group.
Username
Identifier for a Telegram user or bot.

Functions§

extract_group_id
Extract the group ID from a Telegram chat_id (strips -100 prefix)
telegram_chat_id
Calculate the full chat ID that Telegram uses (with -100 prefix for channels/supergroups)