зеркало из
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
Этот коммит содержится в:
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user