Jan-02-2022, 01:00 PM
i am getting an invalid syntax on my python code am a newbie and i dont know what to do. can someone please help me restructure the code
#coding = utf8 import sys from telethon import moneygramClient import time import datetime starttime + time.time () #Use Details from mygram.org api_id = api_hash = '' groups =[''] #groups = ['payfield'] failcount = 0; #The first parameter is the .session name (absolute paths allowed) while True: with moneygramClient('anon', api_id, api_hash) as client: for x in groups: try: client.loop.run_until_complete (client. send_message (x, 'test message')) except: print (x, sys.exc_info ()[0]) failcount += 1 print (datetime.datetime.now (), str (failcount / len (groups) * 100) + '%') time.sleep (10800 - ((time.time - starttime) % 10800))