[Python] Telegram bot API limitations

Discussão em 'Python' iniciado por Stack, Fevereiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    If you open telegram bot FAQ you can see 1 message per second inside particular chat, 30 messages per second inside group chat and less than 20 messages per minute inside group chat.

    I have simple telegram bot with simple rate limiter:

    1. it doesn't use group chats;
    2. it sends only 1 message per second inside particular chat;
    3. it sends less than 20 messages per minute inside particular chat;

    But i always receive 429 error:

    "error_code":429,"description":"Too Many Requests: retry after 236"


    I confused since i don't violate telegram limitations. Please, help me to find problem.

    Source code here, bot uses this library for interaction with telegram in poll mode. Steps to reproduce:

    1) python3 bot.py;
    2) /start in bot;
    3) click "Спектакли";
    4) click very fast on "Трагикомедии" or "Драма";

    Continue reading...

Compartilhe esta Página