lib/telegram/bot/routes_helper.rb
def route_name_for_bot(bot)
          bots = Telegram.bots
          if bots.size != 1
            name = bots.invert[bot]
            name && "#{name}_telegram_webhook"
          end || 'telegram_webhook'
        end
# Returns route name for given bot. Result depends on `Telegram.bots`.
# When there is single bot it returns 'telegram_webhook'.
# When there are it will use bot's key in the `Telegram.bots` as prefix
# (eg. `chat_telegram_webhook`).
Returns route name for given bot.
Returns route name for given bot .
def route_name_for_bot(bot)
          bots = Telegram.bots
          if bots.size != 1
            name = bots.invert[bot]
            name && "#{name}_telegram_webhook"
          end || 'telegram_webhook'
        end
def route_name_for_bot ( bot ) bots = Telegram . bots if bots . size != 1 name = bots . invert [ bot ] name && "#{name}_telegram_webhook" end || 'telegram_webhook' end
Returns route name for given bot.
Returns route name for given bot .
bot