How to get API key and chat ID:
1. Go to Telegram and find a bot named
BotFather. This is the official bot for creating and managing bots in Telegram.
2. Send the command
/start
, and then
/newbot
, to create a new bot.
3. Follow the instructions BotFather: Specify the name and unique username of your bot (must end in
bot
, for example
my_first_bot
).
4. Once created, BotFather will provide you with a **API key**. Copy this key and save it - you will need it for your bot to work.
How to get chat ID:
1. Find your bot in Telegram and click "Launch" or send any message.
2. Follow this link
@userinfobot. This is a special bot that helps to identify your **Chat ID**.
3. Send the command
/start
, @userinfobot will show your **Chat ID**.
4. If you need to send messages to a group, add the bot to the group and send the message. Then use @userinfobot to get the **ID of the group**.
After receiving the data, enter the API key and chat ID in the appropriate form fields on this page and send a message. π