atipugin / telegram-bot-ruby

Ruby wrapper for Telegram's Bot API
https://core.telegram.org/bots/api
Do What The F*ck You Want To Public License
1.35k stars 218 forks source link

Global timeout configuration #250

Closed gl-pv closed 2 years ago

gl-pv commented 2 years ago

It looks like current gem logic does not allow global timeout configuration. Now user can set timeouts only for each request separately. And timeout for Telegram::Bot::Client works only for getUpdates requests. In current implementation timeout for getUpdates request does not changed by default.

I hope it will be useful for global telegram bot configuration.

atipugin commented 2 years ago

Hi @gl-pv

Thanks, lgtm! Merged.