import json
import datetime
import requests

config = json.load(open('/home/esmaeel/PycharmProjects/pythonProject/config.json'))


def notify(version, download_url, custom_message=""):
    current_date = datetime.datetime.today().strftime('%d-%b-%Y')
    # RECEIVER
    url = config["receiver"]
    auther = config["auther"]
    body = {
        'text': f'{version} is ready in : {current_date}: <{download_url}|Download> \nAuther : {auther}\n{custom_message}',
        'username': 'Android Muhla Release Bot',
        'icon_emoji': ':rocket:'
    }
    bod = json.dumps(body)
    print(requests.post(url, bod).text)

634a827186b249758d838452ad6ad9cfb9e26f1d
<mask token>

<mask token>


def notify(version, download_url, custom_message=''):
    current_date = datetime.datetime.today().strftime('%d-%b-%Y')
    url = config['receiver']
    auther = config['auther']
    body = {'text':
        f"""{version} is ready in : {current_date}: <{download_url}|Download> 
Auther : {auther}
{custom_message}"""
        , 'username': 'Android Muhla Release Bot', 'icon_emoji': ':rocket:'}
    bod = json.dumps(body)
    print(requests.post(url, bod).text)

<mask token>
config = json.load(open(
    '/home/esmaeel/PycharmProjects/pythonProject/config.json'))


def notify(version, download_url, custom_message=''):
    current_date = datetime.datetime.today().strftime('%d-%b-%Y')
    url = config['receiver']
    auther = config['auther']
    body = {'text':
        f"""{version} is ready in : {current_date}: <{download_url}|Download> 
Auther : {auther}
{custom_message}"""
        , 'username': 'Android Muhla Release Bot', 'icon_emoji': ':rocket:'}
    bod = json.dumps(body)
    print(requests.post(url, bod).text)

import json
import datetime
import requests
config = json.load(open(
    '/home/esmaeel/PycharmProjects/pythonProject/config.json'))


def notify(version, download_url, custom_message=''):
    current_date = datetime.datetime.today().strftime('%d-%b-%Y')
    url = config['receiver']
    auther = config['auther']
    body = {'text':
        f"""{version} is ready in : {current_date}: <{download_url}|Download> 
Auther : {auther}
{custom_message}"""
        , 'username': 'Android Muhla Release Bot', 'icon_emoji': ':rocket:'}
    bod = json.dumps(body)
    print(requests.post(url, bod).text)

import json
import datetime
import requests

config = json.load(open('/home/esmaeel/PycharmProjects/pythonProject/config.json'))


def notify(version, download_url, custom_message=""):
    current_date = datetime.datetime.today().strftime('%d-%b-%Y')
    # RECEIVER
    url = config["receiver"]
    auther = config["auther"]
    body = {
        'text': f'{version} is ready in : {current_date}: <{download_url}|Download> \nAuther : {auther}\n{custom_message}',
        'username': 'Android Muhla Release Bot',
        'icon_emoji': ':rocket:'
    }
    bod = json.dumps(body)
    print(requests.post(url, bod).text)
