def main(): bot = GroupHelper(token=json.load(open("bot.bot"))['token']) try: chatData = open('chatdata.txt', 'r+') bot.ChatsIDs.update(pickle.load(chatData)) chatData.close() except Exception as e: print(e) while True: bot.check_update() time.sleep(1)
def main(): bot = GroupHelper(token=json.load(open(".bot"))['token']) while True: bot.check_update() time.sleep(1)