Telegram¶
- Get an API token using @Botfather.
- Store token in
<secret-name>
Secret and configure telegram integration inargo-rollouts-notification-configmap
ConfigMap:
apiVersion: v1
kind: ConfigMap
metadata:
name: argo-rollouts-notification-configmap
data:
service.telegram: |
token: $telegram-token
- Create new Telegram channel.
- Add your bot as an administrator.
- Use this channel
username
(public channel) orchatID
(private channel) in the subscription for your Telegram integration:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: username
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: -1000000000000
If your private chat contains threads, you can optionally specify a thread id by seperating it with a |
:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: -1000000000000|2