mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-02-19 18:06:29 +00:00
This patch concerns the Telegram integration. Currently, we always try to process commands when we receive a hook from Telegram. To do so we rely on the `text` parameters from a Telegram message but the API documentation tells us this parameters is actually optional. It means sometimes it’s not present in the payload we receive but we still try to access it resulting in a crash. This patch addresses the issue by simply returning early from the `#process_command` method when `text` is missing from the payload since we don’t have anything to process then.
Chat Integration Plugin
Integrate your chat system of choice with Discourse.
For more information, please see: https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522
Description
Languages
Ruby
89.4%
JavaScript
5.8%
Handlebars
4.2%
SCSS
0.6%