Telegram¶
- Schemes:
telegram://
- Format: text
- Homepage: https://telegram.org/
- API Documentation: https://core.telegram.org/bots/api#sendmessage
List of all supported services: Services
URL Format¶
token
: The telegram bot token.chat_id
: The chat id to send the message to.
If chat_id
is a number (group id or user id) it will be sent to telegram api as is, otherwise it will be prefixed with @
before sent to telegram api.
Query Parameters¶
Parameter | Description |
---|---|
api_host | The telegram api host, default is https://api.telegram.org . |
parse_mode | Mode for parsing entities in the message text, default is none. |
message_thread_id | Unique identifier for the target message thread (topic) of the forum; for forum supergroups only. |
disable_web_page_preview | Disables link previews for links in this message. |
disable_notification | Sends the message silently. Users will receive a notification with no sound. |
protect_content | Protects the contents of the sent message from forwarding and saving. |
Setup Guide¶
Create a Telegram Bot¶
- Open BotFather in Telegram.
- Send
/newbot
to create a new bot. - Enter the bot name and username.
- Copy the bot token.
Get the Chat ID¶
For private chat, send a message to the bot. For groups, add the bot to the group.
Open the following link in your browser:
Replace {token}
with your bot token.
The id
field under chat
is the chat id.
Example URLs¶
Direct message (private chat):
Group:
Channel: