yeref 0.29.2__tar.gz → 0.29.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.29.2
3
+ Version: 0.29.4
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='yeref',
5
- version='0.29.2',
5
+ version='0.29.4',
6
6
  description='desc-f',
7
7
  author='john smith',
8
8
  packages=['yeref'],
@@ -5395,6 +5395,119 @@ l_from_group = {
5395
5395
  "zh": "来自群组",
5396
5396
  "ar": "من المجموعة",
5397
5397
  }
5398
+
5399
+ l_hand_msg_len = {
5400
+ 'ru': "👩🏽‍💻 <b>Сообщение</b> более {0} символов",
5401
+ 'en': "👩🏽‍💻 <b>Message</b> more than {0} characters",
5402
+ 'es': "👩🏽‍💻 <b>Mensaje</b> más de {0} caracteres",
5403
+ 'fr': "👩🏽‍💻 <b>Message</b> de plus de {0} caractères",
5404
+ 'zh': "👩🏽‍💻<b>消息</b>超过 {0} 个字符",
5405
+ 'ar': "👩🏽‍💻 <b>الرسالة</b> أكثر من {0} حرف",
5406
+ }
5407
+ l_hand_msg_timer = {
5408
+ 'ru': "👩🏽‍💻 <b>кѻмментарий</b> написан слишком быстро",
5409
+ 'en': "👩🏽‍💻 <b>Comment</b> written too quickly",
5410
+ 'es': "👩🏽‍💻 <b>Comentario</b> escrito demasiado rápido",
5411
+ 'fr': "👩🏽‍💻 <b>Commentaire</b> écrit trop vite",
5412
+ 'zh': "👩🏽‍💻<b>评论</b>写得太快",
5413
+ 'ar': "👩🏽‍💻 <b>التعليق</b> مكتوب بسرعة كبيرة",
5414
+ }
5415
+ l_hand_msg_flood = {
5416
+ 'ru': "💬 <i>Flood</i>-сообщения",
5417
+ 'en': "💬 <i>Flood</i>-messages",
5418
+ 'es': "💬 <i>Inundación</i>-mensajes",
5419
+ 'fr': "💬 <i>Inondations</i>-messages",
5420
+ 'zh': "💬<i>洪水</i>-消息",
5421
+ 'ar': "💬<i>الفيضانات</i>-رسائل",
5422
+ }
5423
+ l_hand_msg_via_bot = {
5424
+ 'ru': "🗣 <b>Сообщения</b> <i>от имени бота</i> не разрешены",
5425
+ 'en': "🗣 <b>Messages</b> <i>on behalf of a bot</i> are not allowed",
5426
+ 'es': "🗣 <b>Mensajes</b> <i>en nombre de un bot</i> no están permitidos",
5427
+ 'fr': "🗣 Les <b>Messages</b> <i>de la part d'un bot</i> ne sont pas autorisés",
5428
+ 'zh': "🗣 不允许<b>消息</b> <i>代表机器人</i>",
5429
+ 'ar': "🗣 <b>الرسائل</b> <i>بالنيابة عن الروبوت</i> غير مسموح بها",
5430
+ }
5431
+ l_hand_msg_channel = {
5432
+ 'ru': "🫥 <b>Сообщения</b> <i>от имени канала</i> не разрешены",
5433
+ 'en': "🫥 <b>Messages</b> <i>on behalf of the channel</i> are not allowed",
5434
+ 'es': "🫥 <b>Mensajes</b> <i>en nombre del canal</i> no están permitidos",
5435
+ 'fr': "🫥 Les <b>Messages</b> <i>au nom de la chaîne</i> ne sont pas autorisés",
5436
+ 'zh': "🫥 不允许<b>消息</b> <i>代表频道</i>",
5437
+ 'ar': "🫥 <b>الرسائل</b> <i>بالنيابة عن القناة</i> غير مسموح بها",
5438
+ }
5439
+ l_hand_msg_emoji = {
5440
+ 'ru': "🗣 <b>Сообщения</b> <i>c emoji</i> не разрешены",
5441
+ 'en': "🗣 <b>Messages</b> <i>with emoji</i> are not allowed",
5442
+ 'es': "🗣 <b>Mensajes</b> <i>con emoji</i> no están permitidos",
5443
+ 'fr': "🗣 Les <b>Messages</b> <i>avec emoji</i> ne sont pas autorisés",
5444
+ 'zh': "🗣 不允许<b>消息</b> <i>带有表情符号</i>",
5445
+ 'ar': "🗣 <b>الرسائل</b> <i>التي تحتوي على رموز تعبيرية</i> غير مسموح بها",
5446
+ }
5447
+ l_hand_msg_http = {
5448
+ 'ru': "🔗 <b>Сообщения</b> <i>c внешними ссылками</i> не разрешены",
5449
+ 'en': "🔗 <b>Messages</b> <i>with external links</i> are not allowed",
5450
+ 'es': "🔗 No se permiten <b>Mensajes</b> <i>con enlaces externos</i>",
5451
+ 'fr': "🔗 Les <b>Messages</b> <i>avec des liens externes</i> ne sont pas autorisés",
5452
+ 'zh': "🔗 不允许<b>消息</b> <i>带有外部链接</i>",
5453
+ 'ar': "🔗 <b>الرسائل</b> <i>ذات الروابط الخارجية</i> غير مسموح بها",
5454
+ }
5455
+ l_hand_msg_telegram = {
5456
+ 'ru': "🔗 <b>Сообщения</b> <i>c telegram-ссылками</i> не разрешены",
5457
+ 'en': "🔗 <b>Messages</b> <i>with telegram links</i> are not allowed",
5458
+ 'es': "🔗 No se permiten <b>Mensajes</b> <i>con enlaces de Telegram</i>",
5459
+ 'fr': "🔗 Les <b>Messages</b> <i>avec des liens de télégramme</i> ne sont pas autorisés",
5460
+ 'zh': "🔗 不允许<b>消息</b> <i>带有电报链接</i>",
5461
+ 'ar': "🔗 <b>الرسائل</b> <i>التي تحتوي على روابط تيليجرام</i> غير مسموح بها",
5462
+ }
5463
+ l_hand_msg_forward = {
5464
+ 'ru': "🔗 <b>Сообщения</b> <i>c forward-ссылками</i> не разрешены",
5465
+ 'en': "🔗 <b>Messages</b> <i>with forward links</i> are not allowed",
5466
+ 'es': "🔗 No se permiten <b>Mensajes</b> <i>con enlaces directos</i>",
5467
+ 'fr': "🔗 Les <b>Messages</b> <i>avec liens de transfert</i> ne sont pas autorisés",
5468
+ 'zh': "🔗 不允许<b>消息</b> <i>带有转发链接</i>",
5469
+ 'ar': "🔗 <b>الرسائل</b> <i>ذات الروابط الأمامية</i> غير مسموح بها",
5470
+ }
5471
+ l_hand_msg_zalgo = {
5472
+ 'ru': "文 <b>Сообщения</b> <i>c <a href='https://www.zalgo.org'>zalgo-символами</a></i> не разрешены",
5473
+ 'en': "文 <b>Messages</b> <i>c <a href=' https://www.zalgo.org '> zalgo-characters</a></i> are not allowed",
5474
+ 'es': "文 <b>Mensajes</b> <i>c <a href=' https://www.zalgo.org '> caracteres-zalgo</a></i> no están permitidos",
5475
+ 'fr': "文 <b>Messages</b> <i>c <a href=' https://www.zalgo.org '> les caractères zalgo</a></i> ne sont pas autorisés",
5476
+ 'zh': "文 <b>消息</b> <i>c <a href=' https://www.zalgo.org '> zalgo-characters</a></i> 不允许",
5477
+ 'ar': "文 <b>الرسائل</b> <i>c <a href=' https://www.zalgo.org '> zalgo-characters</a></i> غير مسموح بها",
5478
+ }
5479
+ l_hand_msg_symbols = {
5480
+ 'ru': "文 <b>Сообщения</b> <i>c 文ب-алфавитами</i> не разрешены",
5481
+ 'en': "文 <b>Messages</b> <i>with 文ب-alphabets</i> are not allowed",
5482
+ 'es': "文 <b>Mensajes</b> <i>con 文ب-alfabetos</i> no están permitidos",
5483
+ 'fr': "文 <b>Les messages</b> <i>avec les alphabets 文ب</i> ne sont pas autorisés",
5484
+ 'zh': "不允许使用带有文巴字母的<b>消息</b><i>",
5485
+ 'ar': "文 <b>الرسائل</b> <i>التي تحتوي على حروف 文ب</i> غير مسموح بها",
5486
+ }
5487
+ l_hand_msg_stop = {
5488
+ 'ru': "🧾 <b>Сообщение</b> содержит <i>стоп-слова</i>",
5489
+ 'en': "🧾 <b>Message</b> contains <i>safe words</i>",
5490
+ 'es': "🧾 El <b>Mensaje</b> contiene <i>palabras seguras</i>",
5491
+ 'fr': "🧾 <b>Le message</b> contient des <i>mots sûrs</i>",
5492
+ 'zh': "🧾<b>消息</b>包含<i>安全词</i>",
5493
+ 'ar': "🧾 <b>الرسالة</b> تحتوي على <i>كلمات آمنة</i>",
5494
+ }
5495
+ l_hand_msg_edit = {
5496
+ 'ru': "👥 <b>Редактирование</b> сообщений не разрешено",
5497
+ 'en': "👥 <b>Editing</b> messages is not allowed",
5498
+ 'es': "👥 No se permite <b>editar</b> mensajes",
5499
+ 'fr': "👥 <b>Modifier</b> les messages n'est pas autorisé",
5500
+ 'zh': "👥 不允许<b>编辑</b>消息",
5501
+ 'ar': "👥 <b>تحرير</b> الرسائل غير مسموح به",
5502
+ }
5503
+ l_ccomment_button = {
5504
+ 'ru': "🪙 Оплата кѻмментов",
5505
+ 'en': "☑️☐Off admin access",
5506
+ 'es': "☑️☐Fuera del acceso de administrador",
5507
+ 'fr': "☑️☐Hors accès administrateur",
5508
+ 'zh': "☑️️关闭管理员访问权限",
5509
+ 'ar': "☑️☐إيقاف وصول المشرف",
5510
+ }
5398
5511
  # endregion
5399
5512
 
5400
5513
 
@@ -7860,13 +7860,6 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
7860
7860
  USER_VARS = json.loads(USER_VARS)
7861
7861
  USER_LSTS = json.loads(USER_LSTS)
7862
7862
  if page in ['msg', 'pst']: USER_GAMES = await ch_games(USER_GAMES, 'web', True, balls)
7863
-
7864
- now = datetime.now(timezone.utc)
7865
- USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
7866
- USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
7867
- USER_VARS['USER_SIG'] = usr_sig
7868
- USER_VARS['USER_ISPREMIUM'] = is_premium
7869
-
7870
7863
  if not USER_LZ:
7871
7864
  USER_VARS['USER_LC'] = lc
7872
7865
  lz = 'en'
@@ -7885,11 +7878,18 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
7885
7878
  # europe
7886
7879
  elif lc in ['ru', 'kz', 'kg', 'uz', 'tm', 'md', 'am', 'uk-UA', 'uk', 'kk', 'tk', 'ky']:
7887
7880
  lz = 'ru'
7888
- USER_VARS['USER_LZ'] = USER_LZ = lz
7881
+ USER_LZ = lz
7889
7882
  if not USER_DT:
7890
7883
  USER_VARS['USER_DT'] = USER_DT = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
7891
7884
  USER_HID = hashlib.blake2b(f"{'tid'}-{chat_id}".encode('utf-8'), digest_size=4).hexdigest()
7892
7885
  if utm: USER_VARS['USER_UTM'] = utm
7886
+
7887
+ now = datetime.now(timezone.utc)
7888
+ USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
7889
+ USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
7890
+ USER_VARS['USER_SIG'] = usr_sig
7891
+ USER_VARS['USER_ISPREMIUM'] = is_premium
7892
+ USER_VARS['USER_LZ'] = USER_LZ
7893
7893
  print(f"after {USER_VARS=}")
7894
7894
  # endregion
7895
7895
 
@@ -8018,13 +8018,6 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
8018
8018
  USER_VARS = json.loads(USER_VARS)
8019
8019
  USER_LSTS = json.loads(USER_LSTS)
8020
8020
  if page in ['msg', 'pst']: USER_GAMES = await ch_games(USER_GAMES, 'web', True, balls)
8021
-
8022
- now = datetime.now(timezone.utc)
8023
- USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
8024
- USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
8025
- USER_VARS['USER_SIG'] = usr_sig
8026
- USER_VARS['USER_ISPREMIUM'] = is_premium
8027
-
8028
8021
  if not USER_LZ:
8029
8022
  USER_VARS['USER_LC'] = lc
8030
8023
  lz = 'en'
@@ -8043,9 +8036,16 @@ async def upd_user_data(ENT_TID, data, web_app_init_data, PROJECT_USERNAME, BASE
8043
8036
  # europe
8044
8037
  elif lc in ['ru', 'kz', 'kg', 'uz', 'tm', 'md', 'am', 'uk-UA', 'uk', 'kk', 'tk', 'ky']:
8045
8038
  lz = 'ru'
8046
- USER_VARS['USER_LZ'] = USER_LZ = lz
8039
+ USER_LZ = lz
8047
8040
  if not USER_DT: USER_VARS['USER_DT'] = USER_DT = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
8048
8041
  if not USER_HID: USER_HID = hashlib.blake2b(f"{tid}-{chat_id}".encode('utf-8'), digest_size=4).hexdigest()
8042
+
8043
+ now = datetime.now(timezone.utc)
8044
+ USER_LSTS["USER_DAU"] = list(set(USER_LSTS.get("USER_DAU", []) + [now.strftime('%Y-%m-%d')]))
8045
+ USER_LSTS["USER_MAU"] = list(set(USER_LSTS.get("USER_MAU", []) + [now.strftime('%Y-%m')]))
8046
+ USER_VARS['USER_SIG'] = usr_sig
8047
+ USER_VARS['USER_ISPREMIUM'] = is_premium
8048
+ USER_VARS['USER_LZ'] = USER_LZ
8049
8049
  # endregion
8050
8050
 
8051
8051
  # region tx
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.29.2
3
+ Version: 0.29.4
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
File without changes
File without changes
File without changes
File without changes