This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Dict | |
TEXTS: Dict[str, str] = { | |
"start": "Hello {mention} 👋\n\nAsk me anything :)", | |
"wait": "Wait please...", | |
"error": "Something went wrong." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List | |
def long_input(prompt: str) -> str: | |
result: List[str] = [] | |
print(prompt) | |
while True: | |
result_ = input() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from httpx import Client, ReadTimeout | |
from itertools import cycle | |
from collections import deque | |
from math import modf | |
from time import sleep | |
BOT_TOKEN: str = "..." | |
CHAT_ID: int = -100 |