Hamilton::Bot
Hamilton::Bot implementation variant.
Constructors
Creates a bot provided offset, timeout, api instance created from token and url for env, and the given block as handler.
Creates a bot provided offset, timeout, api, and the given block as handler.
Creates a bot provided offset, timeout, api instance created from token and url for env, and a handler chain constructed from the handlers
array and the given block.
Creates a bot provided offset, timeout, api, and a handler chain constructed from the handlers
array and the given block.
Creates a bot provided offset, timeout, api instance created from token and url for env, and the handlers array as handler chain.
Creates a bot provided offset, timeout, api, and the handlers array as handler chain.
Instance methods
Offset of the updates, i.e. the number of the first update to be handled.
Stop listening for the updates.
One of the ways to call it is:
Signal::INT.trap do
puts bot.stop
end