示例#1
0
def start(update, context):
    IDF = Identifier(Tokens=["DOGE-USD"])
    while (True):
        identifier = IDF.update()
        for token in identifier:
            if identifier[token] > 3:
                context.bot.send_message(chat_id=update.effective_chat.id,
                                         text="{} is striking {} downs".format(
                                             token, identifier["DOGE-USD"]))
                time.sleep(60)