-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Configuration | ||
## General | ||
In order to send a message via Telegram, you need to provide a `chat_id` and a `token`. | ||
If you don't pass them as parameters when calling functions from the execution module, | ||
they need to be defined inside the minion configuration or the pillar. | ||
These configuration values can be specified in either of the following ways: | ||
|
||
```yaml | ||
telegram: | ||
chat_id: '123456789' | ||
token: '00000000:xxxxxxxxxxxxxxxxxxxxxxxx' | ||
``` | ||
```yaml | ||
telegram.chat_id: '123456789' | ||
telegram.token: '00000000:xxxxxxxxxxxxxxxxxxxxxxxx' | ||
``` | ||
## Returner | ||
Using the returner module requires the above configuration values | ||
to be set in either the minion configuration or the pillar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters