Esempio n. 1
0
def keep_typing(last: float, chat: Chat, action: str) -> float:
    now = time.time()
    if (now - last) > 1:
        chat.send_action(action)
    return now
Esempio n. 2
0
def keep_typing(last: float, chat: Chat, action: str,
                application: Application) -> float:
    now = time.time()
    if (now - last) > 1:
        application.create_task(chat.send_action(action))
    return now