telegram-bot v0.14.0 Release Notes
Release Date: 2018-06-07 // almost 6 years ago-
- ๐ Make integration & controller specs consistent.
Breaking changes for controller specs:
- Changed signature
dispatch(bot, update) => dispatch(update, bot)
. update
helper is symbolized by default.build_update(type, data)
is dropped in favor ofdeep_stringify(type => data)
.
- Changed signature
- โ
Provide support for integration testing of bots in poller mode and non-Rails apps.
Breaking changes:
- Requiring
telegram/bot/rspec/integration
is deprecated in favor oftelegram/bot/rspec/integration/rails
. :telegram_bot
rspec tag is replaced withtelegram_bot: :rails
.
- Requiring
- ๐ฅ Breaking change. Use bang-methods as actions for commands.
This prevents calling context contextual actions and payload specific actions with commands.
Translation helper strips
!
from action name for lazy translations. - ๐ฅ Breaking change. Drop
.context_handler
,.context_to_action!
methods. Use pass action name directly to#save_context
. It's the same as.context_to_action!
is enabled by default. - ๐ Class-level helper for lazy translations.
- ๐ Make integration & controller specs consistent.
Breaking changes for controller specs: