1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 10:15:50 +03:00

Use token hash in routes instead of plain value, support :path option

Этот коммит содержится в:
Max Melentiev
2020-09-04 13:00:31 +01:00
родитель 03472e3d46
Коммит 97e45d94f2
4 изменённых файлов: 50 добавлений и 38 удалений

Просмотреть файл

@@ -366,7 +366,7 @@ end
### Routes in Rails app
There is `telegram_webhook` helper for rails app to define routes for webhooks.
It defines routes at `telegram/#{bot.token}` and connects bots with controller.
It defines routes at `telegram/#{hash_of(bot.token)}` and connects bots with controller.
```ruby
# Most off apps would require