Переносим бота из Telegram в MAX: что отличается в API и как не переписывать логику
- Words
- 71
- Chars
- 460
- AI summary
- Yes
A developer has a consultant bot built on aiogram 3 and FastAPI that handles requests through Claude. When Telegram became unreliable for clients, the developer added MAX as a second channel without rewriting the bot’s logic. The article examines how the MAX Bot API differs from Telegram’s, including the Mincifry certificate, a webhook that interferes with polling, limits, and buttons. It also covers keeping users from both messengers in one table and where the author lost an hour during the work.
У меня есть бот-консультант на aiogram 3 и FastAPI, который оформляет заявки через Claude. Когда Telegram стал открываться у клиентов через раз, я добавил второй канал, MAX, не переписывая логику. В статье: что в MAX Bot API устроено иначе, чем в Telegram (сертификат Минцифры, вебхук, который глушит polling, лимиты, кнопки), как держать пользователей двух мессенджеров в одной таблице, где я потерял час и как всё проверялось без боевого токена. Читать далее
Open article