1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-28 15:26:18 +03:00

Add a note to README about credentials API appeared in rails 5.2

Этот коммит содержится в:
Konstantin Reido
2018-06-22 00:30:11 +03:00
родитель 8b6dc60aaa
Коммит 4bf5956b41

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

@@ -57,7 +57,7 @@ require 'telegram/bot'
### Configuration in Rails app
Add `telegram` section into `secrets.yml`:
For Rails < 5.2 add `telegram` section into `secrets.yml`:
```yml
development:
@@ -79,6 +79,8 @@ development:
username: ChatBot
```
For Rails > 5.2 edit credentials `EDITOR=nano rails credentials:edit`
From now clients will be accessible with `Telegram.bots[:chat]` or `Telegram.bots[:auction]`.
Single bot can be accessed with `Telegram.bot` or `Telegram.bots[:default]`.