Settings
A plugin that allows you to send messages via Telegram.
Bot Token
Your telegram bot token.
Chat ID
The ID of the chat to send messages to.
Using a Bot to Find Your User ID
You can create a bot specifically for this purpose.
Here's how to do it:
- Go to Telegram and search for the "BotFather."
- Start a chat with the BotFather and send the /newbot command.
- Follow the instructions to create a new bot and give it a name and username.
- Once your bot is created, the BotFather will provide you with a token. Copy this token.
- Go to the Telegram chat where you want to find your user ID.
- Invite your bot to the chat by its username, or add it to a group.
- Send any message in the chat.
- Visit the following URL in your web browser, replacing YOUR_BOT_TOKEN with the token you received:
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates
- Look for the "chat" object in the JSON response. Your user ID will be the value of the "id" field. It typically starts with a minus sign ("-") for users.