Skip to content

Commit

Permalink
directly use Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom committed Nov 14, 2023
1 parent 334ac88 commit 9093cfd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ def send_poll(BOT_TOKEN, CHAT_ID):


def send_message(bot_message, BOT_TOKEN, CHAT_ID):
bot_token = BOT_TOKEN
bot_chatID = CHAT_ID
if "&" in bot_message:
bot_message = bot_message.replace("&", "und")
send_text = 'https://api.telegram.org/bot' + bot_token + '/sendMessage?CHAT_ID=' + bot_chatID + '&parse_mode=Markdown&text=' + bot_message
send_text = 'https://api.telegram.org/bot' + BOT_TOKEN + '/sendMessage?CHAT_ID=' + CHAT_ID + '&parse_mode=Markdown&text=' + bot_message
response = requests.get(send_text)
return response.json()

def main():
print("starting Bot")
try:
check_for_good_stuff(sys.argv[1],sys.argv[2])
# check_for_good_stuff(token, CHAT_ID)
Expand Down

0 comments on commit 9093cfd

Please sign in to comment.