コード例 #1
0
ファイル: main.py プロジェクト: thelacker/TelegramBotPython
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)
コード例 #2
0
ファイル: main.py プロジェクト: thelacker/TelegramBotPython
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)
コード例 #3
0
ファイル: main.py プロジェクト: kiber-teh/GroupHelper
def main():
    bot = GroupHelper(token=json.load(open(".bot"))['token'])

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