Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@ I suggest not using Rails 5.2 credentials because it can lead to leakage of sesi
and it's more difficult to use in multiple environments. See
[secure_credentials](https://github.com/printercu/secure_credentials) gem for better option.

Here is a working example for Rails 6.0 credentials:

```
$ bundle exec rails credentials:show
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base:...

telegram:
bot: ...

$ bundle exec rails credentials:show --environment development
telegram:
bot: ...
```

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]`.

Expand Down