в коммерческой разработке с 201912 открытых проектовтесты и CI в каждомберу новые проекты
-
commercial work since 201912 open projectstests and CI in eachtaking on new projects
+
в коммерческой разработке с 201914 открытых проектовтесты и CI в каждомберу новые проекты
+
commercial work since 201914 open projectstests and CI in eachtaking on new projects
@@ -502,7 +515,9 @@
Интеграции и платежиamoCRM, Bitrix24, Tilda, Google Sheets, Telegram, e-mail. Signed webhooks, retries with backoff, Telegram Stars payments, subscription billing with dunning.
Обе выросли из проектов выше: aiogram-stars — из платёжного кода Zernolist, aioamocrm — из коннектора amoCRM в Relay. Ставятся через pip, нужен Python 3.10 или новее.
+
Both grew out of the projects above: aiogram-stars from Zernolist's payment code, aioamocrm from Relay's amoCRM connector. Both install with pip and need Python 3.10 or newer.
+
+
+
+
+
Оплата в TelegramTelegram payments270 тестов270 tests
+
aiogram-stars
+
Оплата в Telegram Stars для ботов на aiogram 3. От вас две функции: check решает, принимать ли платёж, on_paid выдаёт товар. Библиотека подписывает payload счёта, отвечает на pre-checkout раньше, чем истекут 10 секунд, которые на это даёт Telegram, вызывает on_paid один раз на каждый платёж и хранит возвраты в базе, пока Telegram их не подтвердит.
+
Telegram Stars payments for aiogram 3 bots. You write two functions: check decides whether to take a payment, on_paid hands over the goods. The library signs the invoice payload, answers pre-checkout before Telegram's 10-second deadline, calls on_paid once per charge and keeps refunds in the database until Telegram confirms them.
+
Pythonaiogram 3SQLAlchemy 2PostgreSQLSQLite
+
Тесты не ходят в Telegram: Bot API в них поддельный, но его ответы разбирает сам aiogram.
+
The tests don't call Telegram: the Bot API is a fake, but aiogram itself parses its replies.
Клиент API amoCRMamoCRM API client354 теста354 tests
+
aioamocrm
+
Асинхронный клиент API v4 amoCRM и Kommo. Берёт на себя OAuth2-токены, которые меняются при каждом обновлении, лимит 7 запросов в секунду, повторы, которые без разрешения не отправят запись второй раз, постраничные списки с фильтрами и разбор вебхуков. Сделки, контакты, компании и задачи приходят моделями pydantic.
+
An async client for the amoCRM and Kommo API v4. It takes care of OAuth2 tokens that rotate on every refresh, the limit of 7 requests per second, retries that never send a write twice unless asked, paginated lists with filters and webhook parsing. Leads, contacts, companies and tasks come back as pydantic models.
+
Pythonhttpxpydantic 2OAuth2
+
Живого аккаунта amoCRM за тестами пока нет: HTTP в них замокан, а форматы запросов и ответов сверены с официальным PHP SDK amoCRM.
+
There's no live amoCRM account behind the tests yet: HTTP is mocked, and the request and answer shapes are checked against amoCRM's official PHP SDK.