13 lines
692 B
Python
13 lines
692 B
Python
import requests
|
|
import sys
|
|
sys.path.append('/root/workspace2/execution')
|
|
from config import Config
|
|
|
|
|
|
def send_start_deliminator_message(brain, coin, month, year, dup, max_counter_dup):
|
|
print("notifier: send_start_deliminator_message: ")
|
|
text = "========" + str(brain) + " DUP = " + str(dup) + " MAX_COUNTER_DUP = " + max_counter_dup + " " + str(coin) + " " + str(month) + " " + str(year) + "=======>"
|
|
|
|
result = requests.post('https://api.telegram.org/bot' + Config.NOTIFIER_TELEGRAM_BOT_API_TOKEN_BACKTEST +
|
|
'/sendMessage?chat_id=' + Config.NOTIFIER_TELEGRAM_CHANNEL_ID_BACKTEST + '&text=' + text + '&parse_mode=Markdown')
|
|
print(str(result)) |