"""
Contains constants for the telegram handler.
"""

FLUSH_INTERVAL = 5

API_HOST = "api.telegram.org"
API_URL = (
    f"https://{API_HOST}/bot{{bot_token}}/sendMessage?" f"chat_id=@{{channel_name}}&parse_mode=HTML"
)
RETRY_COOLDOWN_TIME = 60
MAX_RETRYS = 20
RETRY_BACKOFF_TIME = 5
# max valid size is 4096, we take buffer to be on the safe side
MAX_MESSAGE_SIZE = 4000
TOO_MANY_REQUESTS = 429
MAX_BUFFER_SIZE = 10**16
