How to create a Telegram bot?
How to create a Telegram bot?
Описание
A Telegram bot lets you automatically receive website messages directly in Telegram. This is convenient for an online store: you immediately see new orders, reviews, and other important events.
How to create a bot in Telegram
- Open Telegram and find the BotFather bot.
- Click Start or send the /start command.
- Send the command /newbot .
- Enter a name for the bot, for example: Store Notifications .
- Enter the bot's username. It must end in bot , for example: myshop_notice_bot .
- Once created, BotFather will send you a token —you'll need it to connect the module.
Once created, open your bot and click Start . Otherwise, the bot may not send notifications to your account.
How to get a chat ID
Chat_id is the ID of the user or chat where the bot will send notifications.
- Find the @userinfobot bot in Telegram.
- Open it and click Start .
- The bot will show your Telegram ID - this is your chat_id .
If you need to find out another user's ID, ask them to write you any message and forward it to the @userinfobot bot. The bot will respond by displaying that user's ID.
Connecting the bot to the order and review notification module
You can see the extensions at this link , or just below after the description.
For the module to work, you need to specify two values:
- Bot token is the key you received from BotFather.
- Chat_id — ID of the user or chat where notifications should be sent.
Copy this data into the module settings and save the changes. After this, the bot will be able to send notifications about new orders and reviews directly to Telegram.
If notifications don't arrive
- Make sure you click Start in the bot you created;
- make sure the token is copied completely;
- check if chat_id is correct;
- Save the module settings again.
