v1.6-v1.7 How to create Telegram Bot for PrestaShop

Beck

Member
XNullUser
Joined
Sep 9, 2021
Messages
62
Reaction score
10
Points
8
NullCash
51
Create a New Bot for Telegram

Enter @Botfather in the search tab and choose this bot.

How to create telegram bot for prestashop - pic 1


Note, official Telegram bots have a blue checkmark beside their name



Click "Start" to activate BotFather bot. (or type /start)

How to create telegram bot for prestashop - pic 2


In response, you receive a list of commands to manage bots.




Configure

Choose or type the /newbot command and send it.

How to create telegram bot for prestashop - pic 3


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".

How to setup telegram bot for prestashop - pic 1


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.

How to setup telegram bot for prestashop - pic 2


Good luck!


How to setup telegram bot for prestashop - pic 3
 

pk2res

Active member
XNullUser
Joined
Sep 23, 2020
Messages
1,308
Reaction score
5
Points
38
NullCash
5
Thank you very much !
 

hegBIT

Well-known member
Master
Diamond
Elite
XNullUser
Joined
Mar 30, 2021
Messages
901
Reaction score
767
Points
93
NullCash
10
Top