lib/telegram/bot/client.rb in telegram-bot-ruby-0.21.1 vs lib/telegram/bot/client.rb in telegram-bot-ruby-0.22.0

- old
+ new

@@ -10,11 +10,11 @@ new(*args).run(&block) end def initialize(token, hash = {}) @options = default_options.merge(hash) - @api = Api.new(token, url: options.delete(:url)) + @api = Api.new(token, url: options.delete(:url), environment: options.delete(:environment)) @logger = options.delete(:logger) end def run yield self @@ -51,10 +51,11 @@ def default_options { offset: 0, logger: NullLogger.new, - url: 'https://api.telegram.org' + url: 'https://api.telegram.org', + environment: :production } end def log_incoming_message(message) uid = message.respond_to?(:from) && message.from ? message.from.id : nil