w1ld3r / crypto-signal

The #1 Automated Technical Analysis (TA) & Algo. Trading tool for Coinbase, Bittrex, Binance, and more! (Track over 500+ coins)
http://cryptosignal.dev
MIT License
76 stars 37 forks source link

[FEATURE] Multiple Telegram notifier #26

Closed velajos closed 3 years ago

velajos commented 3 years ago

How could notifications be sent to two or more Telegram accounts at the same time?

w1ld3r commented 3 years ago

I don't think it's avaliable for now. Have you tried to define multiple telegram object in the config.yml file ?

velajos commented 3 years ago

I don't think it's avaliable for now. Have you tried to define multiple telegram object in the config.yml file ?

Yes, but I got the notification only for the first Telegram in the config.yml

w1ld3r commented 3 years ago

Ok, I will implement it asap.

velajos commented 3 years ago

Ok, I will implement it asap.

Ok, let me know please

velajos commented 3 years ago

Ok, I will implement it asap.

It could be something like this:

notifiers: telegram: required: token1: 1847324294XXXkCdO3q5KZv chat_id1: -XXX1234130 token2: 1847324294XXXkCdO3q5KZv chat_id2: -XXX1234130 token3: 1847324294XXXkCdO3q5KZv chat_id3: -XXX1234130

And so on, without a specific limit

velajos commented 3 years ago

Please let me know when the Feature is implemented

w1ld3r commented 3 years ago

Can you check the new push ?

w1ld3r commented 3 years ago

You can use it like that:

notifiers:
    telegram_00:
        required:
            token: XXX
            chat_id: YYY
        optional:
            parse_mode: html
            template: "[{{market}}] {{indicator}} {{status}} {{values}} {{ '\n' -}}"
    telegram_01:
        required:
            token: XXX
            chat_id: YYY
        optional:
            parse_mode: html
            template: "[{{market}}] {{indicator}} {{status}} {{values}} {{ '\n' -}}"
w1ld3r commented 3 years ago

Have you been able to test it @Juanjacinto123 ?

velajos commented 3 years ago

Have you been able to test it @Juanjacinto123 ?

Yes. It work's perfectly