salt.beacons.telegram_bot_msg

Beacon to emit Telegram messages

Requires the python-telegram-bot library

salt.beacons.telegram_bot_msg.beacon(config)

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.

beacons:
  telegram_bot_msg:
    - token: "<bot access token>"
    - accept_from:
      - "<valid username>"
    - interval: 10

salt.beacons.telegram_bot_msg.validate(config)

Validate the beacon configuration

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/beacons/all/salt.beacons.telegram_bot_msg.html