claudiajs / claudia-bot-builder

Create chat bots for Facebook Messenger, Slack, Amazon Alexa, Skype, Telegram, Viber, Line, GroupMe, Kik and Twilio and deploy to AWS Lambda in minutes
https://claudiajs.com/claudia-bot-builder.html
MIT License
1.84k stars 253 forks source link

Support Telegram channel post updates #112

Closed davisdevs closed 6 years ago

davisdevs commented 6 years ago

We only need to parse channel_postobject in addition to message to support post updates from channels 🙂

Example of update object from a channel (channel service posts, broadcast posts)

{
      "update_id": 195485045,
      "channel_post": {
        "message_id": 6,
        "chat": {
          "id": 123,
          "title": "Best Channel",
          "username": "bestchannel",
          "type": "channel"
        },
        "date": 1520153063,
        "text": "test"
      }
simalexan commented 6 years ago

Great addition! Thank you! Merging