class

Hamilton::CmdHandler

Inherits Hamilton::Handler < Reference < Object

The module for handling commands, callback queries (please, do not use them), known text messages, and some of messages payloads.

Should be included in the class with the implementations of updates' handling functions.

Constructors

new(log_level : Log::Severity = Log::Severity::Info)
Source

Instance methods

Handling method that processes an update.

Source
caller
context

Context for the current bot sessions.

Source
context=(context : Hamilton::Context)

Context for the current bot sessions.

Source
log

Logger instance.

Source
log=(log : Log)

Logger instance.

Source
mapper

Mapping between methods and mapper between update types and methods to handle them.

Source
mapper=(mapper : Hash(Symbol, Hash(String | Symbol, Symbol)))

Mapping between methods and mapper between update types and methods to handle them.

Source