зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
5.5 KiB
5.5 KiB
Unreleased
0.15.7
- Add support for editMessageMedia similar to sendMediaGroup.
0.15.6
- Rails 7.0 support.
- Fix sending File objects in nested objects in sendMediaGroup.
- Update to Bot API 5.7
0.15.4
- Update to Bot API 5.3
0.15.3
- Ruby 3.0 support: fix translation helpers.
0.15.2
- Ruby 3.0 support. Drop support for Ruby < 2.4.
0.15.1
- Rails 6.1 support.
0.15.0
- Add
:pathoption totelegram_webhookroute helper. - Breaking change! Default route is generated using hashed bot token.
Please reconfigure webhook after update (
rake telegram:bot:set_webhook). - Update to Bot API 5.0, add rake tasks for
deleteWebhook,close&logOut. - Add
serveroption for client to support local bot API servers.
0.14.4
- Update to Bot API 4.7
0.14.3
- Rails 6.0 support.
- Update to Bot API 4.4.
0.14.2
- Add reply helpers:
answer_pre_checkout_query,answer_shipping_query. - Update to Bot API 4.3.
0.14.1
- Read config from secrets when credentials don't provide it in rails >= 5.2.
- Remove botan.io support. It's already shut down, so it should not be a braking change. https://github.com/botanio/sdk#this-service-will-be-shut-down-on-25th-may-2018
- Update to Bot API 4.1.
0.14.0
- Make integration & controller specs consistent.
Breaking changes for controller specs:
- Changed signature
dispatch(bot, update) => dispatch(update, bot). updatehelper 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/integrationis deprecated in favor oftelegram/bot/rspec/integration/rails. :telegram_botrspec 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.
0.13.1
- Extracted typed response mappings to telegram-bot-types gem. It now provides definitions for all API v3.5 methods.
- Fix #chat for non-message updates with TypedUpdates enabled
0.13.0
rescue_from.- Support for
credentialsstore in Rails 5.2. - Deprecate
telegram_webhooksin favor oftelegram_webhook. It was too complicated and such routes looked ugly.
0.12.4
- Fix spec helpers for callback queries.
0.12.3
- New methods from Bot API v3.5
- Collect all api helper-methods in Client::ApiHelper module.
- Add
bin/fetch-telegram-methodsto update API methods list from website.
0.12.1
- Fix
set_webhookrake task for async bots with self-issued certificates. - Make
#sessionraise error when store is not configured, don't use Rails.cache as fallback for session_store. - Allow use different sessions for MessageContext.
0.12.0
- New API methods and payload types (up to Bot API 3.2).
- Fix rails 5.1.x support.
- RSpec context for callback_query updates.
edit_messagehelper.- ClientStub saves and returns token. Fixes testing multiple bots.
- Raise descriptive error when accessing not-configured bot.
0.11.3
- Release dependencies for Rails 5.1.
0.11.2
- Rails 5.1 deep symbolized secrets support.
0.11.1
- Fixed poller for typed response.
0.11.0
- Remove Bot::StaleChat in favor of Bot::Forbidden, as Telegram adds more and more new descriptions. Please open an issue if you face a problem.
0.10.2
- Support
(edited_)channel_postupdates. - New methods from 2.3, 2.3.1 API updates.
0.10.0
- Integration helpers for RSpec.
- Fix for ruby 2.2.0 bug by @bob-frost.
0.9.0
- Async API requests.
- One more description for StaleChat error.
- edit_message_* methods.
- API methods from 2016-10-03 update
- Fix typo in module name: CallbackQueyContext -> CallbackQueryContext.
- Take
chatfrommessagefor callback queries - RSpec matchers.
0.8.0
- Fixed
#reply_with, now it setsreply_to_message_idas it's supposed to. Added#respond_withwhich works the same way, but doesn't setreply_to_message_id. Please, replace all occurrences ofreply_withtorespond_withto keep it working the old way. - Fixes for Rails 5:
- Controller callbacks
- Middleware
- Setup travis builds
0.7.4
- Rails 5 support by @dreyks (#4).
0.7.3
- Fixed issues with poller in production (#3)
0.7.2
- Bot API 2.1
- Fixed possible crashes when payload type is not supported.
Provides empty session when neither
fromnorchatis defined.
0.7.0
- New Bot API methods.
- Helpers for inline keyboards, support for callback_query (with contextual actions).
- Changed action methods signature
#inline_query(payload) -> #inline_query(query, offset)#chosen_inline_result(payload)->#chosen_inline_result(result_id, query)
- MessageContext doesn't use second #process call to run contextual action.
- Botan.io metrics.
0.6.0
- StaleChat error.
- Encode arrays as json in request body.
0.5.0
- MessageContext.
- Running controller action without update.
- Client.wrap supports symbols.
- Improved testing utils: ability to process multiple updates on same controller instance, stubbing all clients in application.