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 217 forks source link

Added Test environment #263

Closed valovm closed 1 year ago

valovm commented 1 year ago

Hi. I added the support of environments to bots. This required for developing Web Applications if you want to run it without ssl. More info here: https://core.telegram.org/bots/webapps#testing-web-apps

I moved your token to ENV variable. You can run test with help this command: BOT_API_TOKEN=<TOKEN> bundle exec rspec spec