Also I'm thinking to make it's public:
can be helpful for adding middlewares, such as :logger, but maybe I'll consider changes to the Bot::Configuration later.
Update: I've decided to make it public, because don't know how to add connection.response :logger, nil, { headers: true, bodies: true } into Configuration with flexible customization. It seems just easier to call connection from outside as you want.
I see no reason to shrink it's like this.
Also I'm thinking to make it's public: can be helpful for adding middlewares, such as
:logger
, but maybe I'll consider changes to theBot::Configuration
later.Update: I've decided to make it public, because don't know how to add
connection.response :logger, nil, { headers: true, bodies: true }
intoConfiguration
with flexible customization. It seems just easier to callconnection
from outside as you want.