Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
def main():
    bot = GroupHelper(token=json.load(open(".bot"))['token'])

    while True:
        bot.check_update()
        time.sleep(1)