Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Feb 15, 2023
1 parent 7b2836b commit 193d290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/nutgram.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
nutgram:
# The Telegram bot token
token: '%env(string:NUTGRAM_TOKEN)%'
token: '%env(string:TELEGRAM_TOKEN)%'

# If true, the webhook mode validates the incoming IP range is from a Telegram server
safe_mode: false
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public function getConfigTreeBuilder(): TreeBuilder
$treeBuilder->getRootNode()
->children()
->scalarNode('token')->end()
->booleanNode('safe_mode')->defaultFalse()->end()
->booleanNode('safe_mode')->end()
->arrayNode('config')->end()
->booleanNode('routes')->defaultTrue()->end()
->booleanNode('routes')->end()
->end()
->end();

Expand Down

0 comments on commit 193d290

Please sign in to comment.