From dfd9a700d0c56cbc71c7663d2867e7265f3f10f1 Mon Sep 17 00:00:00 2001 From: Fsoky Date: Sun, 19 Sep 2021 12:25:23 +0600 Subject: [PATCH] update --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 992aa17..be91048 100644 --- a/README.md +++ b/README.md @@ -56,10 +56,13 @@ alert = Alert("token") @alert.event() def new_donation(event): """ Пример обращения + event.username - получает никнейм донатера event.objects - вернуть JSON object + """ - print(event) # Выведет все доступные атрибуты, к которым можно обратиться + + print(event) # Выведет все доступные атрибуты, к которым можно обратиться ``` Все примеры вы можете посмотреть в папке [Examples](https://github.com/Fsoky/Donation-Alerts-API-Python/tree/main/examples) \ @@ -115,8 +118,11 @@ alert = Alert("token") @alert.event() async def handler(event): print(f"{event.username} пожертвовал {event.amount_formatted} {event.currency} | {event.message}") + """ Вывод: + Fsoky пожертвовал 9999.0 RUB | Тут его сообщение. + """ ```