diff --git a/handlers/notifications/general_notifications.py b/handlers/notifications/general_notifications.py index c92e0bc3..93e46eb3 100644 --- a/handlers/notifications/general_notifications.py +++ b/handlers/notifications/general_notifications.py @@ -534,7 +534,8 @@ async def process_auto_renew_or_notify( keyboard = build_notification_kb(email) await add_notification(conn, tg_id, notification_id) - await send_notification(bot, tg_id, standard_photo, message_text, keyboard) + text_to_send = message_text if 'message_text' in locals() else standard_caption + await send_notification(bot, tg_id, standard_photo, text_to_send, keyboard) return client_id = key.client_id diff --git a/handlers/utils.py b/handlers/utils.py index 13b2eafd..ee7bab03 100644 --- a/handlers/utils.py +++ b/handlers/utils.py @@ -283,18 +283,18 @@ def sanitize_key_name(key_name: str) -> str: RUSSIAN_MONTHS = { - "January": "Января", - "February": "Февраля", - "March": "Марта", - "April": "Апреля", - "May": "Мая", - "June": "Июня", - "July": "Июля", - "August": "Августа", - "September": "Сентября", - "October": "Октября", - "November": "Ноября", - "December": "Декабря", + "January": "января", + "February": "февраля", + "March": "марта", + "April": "апреля", + "May": "мая", + "June": "июня", + "July": "июля", + "August": "августа", + "September": "сентября", + "October": "октября", + "November": "ноября", + "December": "декабря", }