README.md in omniauth-telegram-0.1.0 vs README.md in omniauth-telegram-0.2.0
- old
+ new
@@ -19,20 +19,20 @@
Here's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`:
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
- provider :telegram, ENV['BOT_NAME'], ENV['BOT_SECRET']
+ provider :telegram, ENV['BOT_NICKNAME'], ENV['BOT_SECRET']
end
```
## Configuring
You can customise the button (more info on telegram's api website):
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
- provider :telegram, ENV['BOT_NAME'], ENV['BOT_SECRET'],
+ provider :telegram, ENV['BOT_NICKNAME'], ENV['BOT_SECRET'],
button_options: { 'request-access' => 'write' }
end
```
## Supported Rubies