lib/telegram/bot/routes_helper.rb in telegram-bot-0.4.2 vs lib/telegram/bot/routes_helper.rb in telegram-bot-0.5.0

- old
+ new

@@ -40,10 +40,12 @@ # # telegram_webhooks creates named routes. See # # RoutesHelper.route_name_for_bot for more info. # # You can override this options or specify others: # telegram_webhooks TelegramController, as: :my_webhook # telegram_webhooks bot => [TelegramChatController, as: :chat_webhook], - # other_bot => [TelegramAuctionController, + # other_bot => TelegramAuctionController, + # admin_chat: TelegramAdminChatController + # def telegram_webhooks(controllers, bots = nil, **options) unless controllers.is_a?(Hash) bots = bots ? Array.wrap(bots) : Telegram.bots.values controllers = Hash[bots.map { |x| [x, controllers] }] end