lib/telegram/bot/api.rb in telegram-bot-ruby-0.3.6 vs lib/telegram/bot/api.rb in telegram-bot-ruby-0.3.7
- old
+ new
@@ -16,10 +16,10 @@
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
+ persistent_connection_adapter pool_size: POOL_SIZE, keep_alive: 0
def initialize(token)
@token = token
end