You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the same issue. Ideally, it would be great to have the option to configure the Telegram token separately, in an initializer. Otherwise, it's not immediately clear where this configuration is happening.
@printercu If that's the way to go, I would suggest to mention it somewhere in the documentation, because everybody who builds a docker image with Rails and your gem will fall into that trap.
When building a docker image, it is recommended practice to do that as follows
This will cause Telegram::Bot to fail with
Telegram::Bot::Client :default not configured
.I helped myself with using the following code in
config/routes.rb
:But it feels ugly and I think there should be a better out of the box solution, as everybody will have this problem who tries to deploy via docker
The text was updated successfully, but these errors were encountered: