5
0
Fork
You've already forked bots
0
A place for various bots
  • JavaScript 100%
Find a file
2020年06月12日 14:18:25 +02:00
node_modules post order to multivielemessages 2020年06月11日 14:53:43 +02:00
index.js fix reducer bug 2020年06月11日 16:33:53 +02:00
package-lock.json post order to multivielemessages 2020年06月11日 14:53:43 +02:00
package.json post order to multivielemessages 2020年06月11日 14:53:43 +02:00
readme.md update JSON in readme 2020年06月12日 14:18:25 +02:00

post order to telegram chat

It needs these env-vars:

  • PORT
  • BOT_TOKEN (the telegram botfather will provide you with one when you set up your bot)
  • CHAT_ID (for groups, add the bot to the group, send a message to the bot, e.g. /anything @, then find the ID here: https://api.telegram.org/bot<BOT_TOKEN>/getUpdates )

It currently expects json-data like this

{ "from": 'EOTL', "to": 'Toughie', "message": 'Hallo there', "order": [{ "item": "rice-white", "size": "md" }] }