lib/telegram/bot/api.rb in telegram-bot-ruby-0.3.8 vs lib/telegram/bot/api.rb in telegram-bot-ruby-0.3.9
- old
+ new
@@ -16,10 +16,12 @@
POOL_SIZE = ENV.fetch('TELEGRAM_BOT_POOL_SIZE', 1).to_i.freeze
attr_reader :token
base_uri 'https://api.telegram.org'
- persistent_connection_adapter pool_size: POOL_SIZE, keep_alive: 0
+ persistent_connection_adapter pool_size: POOL_SIZE,
+ keep_alive: 30,
+ force_retry: true
def initialize(token)
@token = token
end