Telegram bot for sending messages.
Plugin Strapi for sending messages to a Telegram bot.
The plugin allows sending text messages to site administrators. This will enable quicker processing of customer inquiries or orders.
Currently, this is not implemented.
(Use yarn to install this plugin within your Strapi project (recommended). Install yarn with these docs.)
1 yarn add telegram-bot-strapi
After successful installation you've to re-build your Strapi instance. To archive that simply use:
1 yarn build
2 yarn develop
The telegram-bot plugin should appear in the Plugins section of Strapi sidebar after you run app again.
As a next step you must configure your the plugin by the way you want to. See Configuration section.
All done. Enjoy 🎉
1TELEGRAM_TOKEN=""
A plugin will appear in the Strapi admin panel.
In the plugin window, the name of your bot should appear.
/start
in the added bot.
Update list chats
button.To send messages to all selected users, make a POST
request.
1http://[addres sever]/telegram-bot-strapi/send-message
2
3 {
4 "message": "My first message"
5 }
All activated users will receive the message.
In response, we will receive a message:
1{
2 "result": "Message send"
3}
npm install telegram-bot-strapi
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.