discourse-chat-integration/lib/discourse_chat_integration/provider/telegram
Loïc Guitaut c68fde5d2b FIX: Don’t process commands when 'text' is missing
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.
2022-07-18 18:11:22 +02:00
..
telegram_command_controller.rb FIX: Don’t process commands when 'text' is missing 2022-07-18 18:11:22 +02:00
telegram_initializer.rb Rename DiscourseChat to DiscourseChatIntegration (#82) 2021-07-13 14:36:16 -05:00
telegram_provider.rb FIX: Respect core settings when rendering user names/usernames (#129) 2022-05-30 17:13:55 +01:00