1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 10:15:50 +03:00

Drop .context_handler, .context_to_action! methods

Этот коммит содержится в:
Max Melentiev
2018-05-28 18:41:40 +03:00
родитель 9310fa613b
Коммит 6dd705fe89
5 изменённых файлов: 77 добавлений и 132 удалений

Просмотреть файл

@@ -206,9 +206,11 @@ module Telegram
[payload_type, [payload['data']]]
end
# Silently ignore unsupported messages.
# Params are `action, *args`.
def action_missing(*)
# Silently ignore unsupported messages to not fail when user crafts
# an update with usupported command, callback query context, etc.
def action_missing(action, *_args)
logger.debug { "The action '#{action}' is not defined in #{self.class.name}" } if logger
nil
end
PAYLOAD_TYPES.each do |type|