telegram_bot_msg

Beacon to emit Telegram messages.

Configuration example

Include the following in the minion configuration:

beacons:
  telegram_bot_msg:
    - token: "<bot access token>"
    - accept_from:
      - "<valid username>"
    - interval: 10
saltext.telegram.beacons.telegram_bot_msg.validate(config)[source]

Validate the beacon configuration

saltext.telegram.beacons.telegram_bot_msg.beacon(config)[source]

Emit a dict with a key “msgs” whose value is a list of messages sent to the configured bot by one of the allowed usernames.