Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
def main():
    bot = GroupHelper(token=json.load(open(".bot"))['token'])

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