Create a New Bot for Telegram
Enter @Botfather in the search tab and choose this bot.
Note, official Telegram bots have a blue checkmark beside their name
Click "Start" to activate BotFather bot. (or type /start)
In response, you receive a list of commands to manage bots.
Configure
Choose or type the /newbot command and send it.
Choose a name for your bot — your subscribers will see it in the conversation. And choose a username for your bot — the bot can be found by its username in searches. The username must be unique and end with the word "bot".
After you choose a suitable name for your bot — the bot is created. You will receive a message with a link to your bot t.me/<bot_username>, recommendations to set up a profile picture, description, and a list of commands to manage your new bot.
To connect a bot to SendPulse you need a token.
!!! Copy your token value
How to Find a Token for an Existing Bot
- Go to the @BotFather bot and send the command /token
- You will see buttons with any bots that you have created. Choose the one you need a token for.
- Copy the token value.
How to connect Bot to your PrestaShop
- You need to install the Telegram Notification module for PrestaShop
- get chat_id of Bot you have created above:
Start a conversation with your Bot (go to URL t.me/yourBotNamebot and press Start button) or add him to the group.
Get the list of updates for your BOT:
https://api.telegram.org/bot/getUpdates
Example: https://api.telegram.org/bot123456789:jbd78sbdvbdy63d37gda37bd8/getUpdates
You will get JSON response
{"ok":true,"result":{"message_id":1,"from":{"id":454545453,"is_bot":true,"first_name":"my678test7","username":"my678test7bot"},"chat":{"id":123456789,"first_name",................}
Look for the "chat" object:
...."chat":{"id":123456789"....
In this example, chat_id is 123456789
Module
Now you have all for using TELEGRAM ORDERS ALERTS module for PrestaShop
Just fill bot_id and chat_id in the setting page of the module and configure notification fields.
Good luck!
Enter @Botfather in the search tab and choose this bot.
Note, official Telegram bots have a blue checkmark beside their name
Click "Start" to activate BotFather bot. (or type /start)
In response, you receive a list of commands to manage bots.
Configure
Choose or type the /newbot command and send it.
Choose a name for your bot — your subscribers will see it in the conversation. And choose a username for your bot — the bot can be found by its username in searches. The username must be unique and end with the word "bot".
After you choose a suitable name for your bot — the bot is created. You will receive a message with a link to your bot t.me/<bot_username>, recommendations to set up a profile picture, description, and a list of commands to manage your new bot.
To connect a bot to SendPulse you need a token.
!!! Copy your token value
How to Find a Token for an Existing Bot
- Go to the @BotFather bot and send the command /token
- You will see buttons with any bots that you have created. Choose the one you need a token for.
- Copy the token value.
How to connect Bot to your PrestaShop
- You need to install the Telegram Notification module for PrestaShop
- get chat_id of Bot you have created above:
Start a conversation with your Bot (go to URL t.me/yourBotNamebot and press Start button) or add him to the group.
Get the list of updates for your BOT:
https://api.telegram.org/bot/getUpdates
Example: https://api.telegram.org/bot123456789:jbd78sbdvbdy63d37gda37bd8/getUpdates
You will get JSON response
{"ok":true,"result":{"message_id":1,"from":{"id":454545453,"is_bot":true,"first_name":"my678test7","username":"my678test7bot"},"chat":{"id":123456789,"first_name",................}
Look for the "chat" object:
...."chat":{"id":123456789"....
In this example, chat_id is 123456789
Module
Now you have all for using TELEGRAM ORDERS ALERTS module for PrestaShop
Just fill bot_id and chat_id in the setting page of the module and configure notification fields.
Good luck!