fix notification message handling
This commit is contained in:
@@ -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
|
||||
|
||||
+12
-12
@@ -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": "декабря",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user