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 of deep_stringify(type => data).
    • โœ… 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 of telegram/bot/rspec/integration/rails.
      • :telegram_bot rspec tag is replaced with telegram_bot: :rails.
    • ๐Ÿ’ฅ 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.