зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-04 10:15:50 +03:00
Drop .context_handler, .context_to_action! methods
Этот коммит содержится в:
@@ -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|
|
||||
|
||||
Ссылка в новой задаче
Block a user