- Open Telegram and find the BotFather bot. @BotFather
- Start a dialog with BotFather with the /start command.
- Create a new bot by sending the command:
/newbot
Come up with a name for the bot (e.g., MyTestBot).
Come up with a unique username for the bot (e.g. MyTestBot123_bot). It must end in _bot.
Get API token – after successful creation BotFather will send you a message with the token in this format:
1234567890:ABCdefGHIjklMNOpqrstUVWXyz
💡 Important! This token is the key to controlling the bot. Do not show it to anyone!
- Getting chat ID
- The chat ID can be personal, group, or channel.
- Open Telegram and find a bot @userinfobot
- Click Start, and the bot will send your ID, for example Your ID: 123456789
- Then open the bot using the link given by @BotFather and write in chat /start
- he will not respond, but it will activate the bot.
- Now we need to test the bot.
- Go to the page with the test – https://goldeneagle.click/Tgtest/
- Enter the data from the bot and the test message.
- Click the send button.
- If the bot receives a message, it means you have configured everything correctly.