Tim
|
1138a088f6
|
Adding telegram support (#2827)
* added telegram config in notifiers
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added telegram config to config.go
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added package telegram to notify and initialization in cmd
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added telegram.default.message
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added telegram template to notifiers.go
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added message rendering from template to telegram integration
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* documentation for telegram_configs
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added tests for telegram
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* fixed config_test.go
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added valid parse_mode list to the error log
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* made use of httpconfig, moved telegram client creation to New func, changed message truncation to 4096 chars
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* changed supported values for telegram config
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added mock url for telegram tests to pass
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* added api_url check to telegram config
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* changed bot_token type to secret
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* removed extra emptyline
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* convert bot_token to string in telegram client creation
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* updated configuration.md
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* fixed mixed up errors
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
* check telegram api url without conversion to string
Signed-off-by: timmilesdw <tuktamyshev.t0308@gmail.com>
|
2022-02-22 17:51:02 +01:00 |