yeref 0.29.11__py3-none-any.whl → 0.29.13__py3-none-any.whl
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.
- yeref/l_.py +4 -4
- yeref/yeref.py +23 -41
- {yeref-0.29.11.dist-info → yeref-0.29.13.dist-info}/METADATA +1 -1
- yeref-0.29.13.dist-info/RECORD +8 -0
- yeref-0.29.11.dist-info/RECORD +0 -8
- {yeref-0.29.11.dist-info → yeref-0.29.13.dist-info}/WHEEL +0 -0
- {yeref-0.29.11.dist-info → yeref-0.29.13.dist-info}/top_level.txt +0 -0
yeref/l_.py
CHANGED
@@ -5437,8 +5437,8 @@ l_hand_msg_channel = {
|
|
5437
5437
|
'ar': "🫥 <b>الرسائل</b> <i>بالنيابة عن القناة</i> غير مسموح بها",
|
5438
5438
|
}
|
5439
5439
|
l_hand_msg_emoji = {
|
5440
|
-
'ru': "
|
5441
|
-
'en': "
|
5440
|
+
'ru': "🫥 <b>Сообщения</b> <i>c эмоджи</i> не разрешены",
|
5441
|
+
'en': "🫥 <b>Messages</b> <i>with emoji</i> are not allowed",
|
5442
5442
|
'es': "🗣 <b>Mensajes</b> <i>con emoji</i> no están permitidos",
|
5443
5443
|
'fr': "🗣 Les <b>Messages</b> <i>avec emoji</i> ne sont pas autorisés",
|
5444
5444
|
'zh': "🗣 不允许<b>消息</b> <i>带有表情符号</i>",
|
@@ -5461,7 +5461,7 @@ l_hand_msg_telegram = {
|
|
5461
5461
|
'ar': "🔗 <b>الرسائل</b> <i>التي تحتوي على روابط تيليجرام</i> غير مسموح بها",
|
5462
5462
|
}
|
5463
5463
|
l_hand_msg_forward = {
|
5464
|
-
'ru': "🔗 <b>Сообщения</b> <i>c
|
5464
|
+
'ru': "🔗 <b>Сообщения</b> <i>c форвард-ссылками</i> не разрешены",
|
5465
5465
|
'en': "🔗 <b>Messages</b> <i>with forward links</i> are not allowed",
|
5466
5466
|
'es': "🔗 No se permiten <b>Mensajes</b> <i>con enlaces directos</i>",
|
5467
5467
|
'fr': "🔗 Les <b>Messages</b> <i>avec liens de transfert</i> ne sont pas autorisés",
|
@@ -5477,7 +5477,7 @@ l_hand_msg_zalgo = {
|
|
5477
5477
|
'ar': "文 <b>الرسائل</b> <i>c <a href=' https://www.zalgo.org '> zalgo-characters</a></i> غير مسموح بها",
|
5478
5478
|
}
|
5479
5479
|
l_hand_msg_symbols = {
|
5480
|
-
'ru': "文 <b>Сообщения</b> <i>c
|
5480
|
+
'ru': "文 <b>Сообщения</b> <i>c 文ب-glyth символами</i> не разрешены",
|
5481
5481
|
'en': "文 <b>Messages</b> <i>with 文ب-alphabets</i> are not allowed",
|
5482
5482
|
'es': "文 <b>Mensajes</b> <i>con 文ب-alfabetos</i> no están permitidos",
|
5483
5483
|
'fr': "文 <b>Les messages</b> <i>avec les alphabets 文ب</i> ne sont pas autorisés",
|
yeref/yeref.py
CHANGED
@@ -2147,7 +2147,7 @@ allowed_startapp_params = ['fnd', 'sbt', 'don', 'sub', 'pay', 'pst', 'msg', 'ft'
|
|
2147
2147
|
tids_not_for_trans = [5134596871, 5152320320, 5200969162, 5240041587, 5277505344, 5298580533, 5300792695, 5304873693,
|
2148
2148
|
5318482236, 5372068352, 5380838469, 5456863561, 5588781655, 5621199443, 5805890320, 5846446387,
|
2149
2149
|
5850795580, 5868482417, 5951232918, 5962132892, 5969907012]
|
2150
|
-
GROUP_ANON_TID = 1087968824
|
2150
|
+
GROUP_ANON_TID = 1087968824 # GroupAnonymousBot
|
2151
2151
|
CHANNEL_BOT_ = 136817688
|
2152
2152
|
ferey_channel_europe = -1001471122743
|
2153
2153
|
ferey_channel_en = -1001833151619
|
@@ -2189,7 +2189,7 @@ website = 'https://google.com'
|
|
2189
2189
|
facebook = 'https://www.facebook.com'
|
2190
2190
|
telegram_account = 'https://t.me'
|
2191
2191
|
ferey_telegram_username = 'ferey_support'
|
2192
|
-
ferey_telegram_demo_bot = '
|
2192
|
+
ferey_telegram_demo_bot = 'FereyGroupBot'
|
2193
2193
|
ferey_address = "Estônia, Tāllin, Mäepealse, 2/1"
|
2194
2194
|
ferey_title = "Ferey Inc."
|
2195
2195
|
text_developer_info = (
|
@@ -2209,6 +2209,17 @@ text_privacy_terms = (
|
|
2209
2209
|
"\t\"privacy_policy\": \"https://telegram.org/privacy-tpa\"\n"
|
2210
2210
|
"}</blockquote>"
|
2211
2211
|
)
|
2212
|
+
PAT = regex.compile(
|
2213
|
+
r'[\p{Han}\p{Hiragana}\p{Katakana}\p{Hangul}'
|
2214
|
+
r'\p{Arabic}\p{Hebrew}\p{Ethiopic}'
|
2215
|
+
r'\p{Devanagari}\p{Bengali}\p{Gurmukhi}\p{Tamil}\p{Telugu}'
|
2216
|
+
r'\p{Kannada}\p{Malayalam}\p{Thai}'
|
2217
|
+
r'\p{Khmer}\p{Tibetan}\p{Myanmar}]'
|
2218
|
+
)
|
2219
|
+
PAT_ZALGO = regex.compile(
|
2220
|
+
r'[\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]{2,}'
|
2221
|
+
)
|
2222
|
+
|
2212
2223
|
commands_ru = [types.BotCommand(command="start", description="⚙️ Перезагрузка"),
|
2213
2224
|
types.BotCommand(command="lang", description="🇫🇷 Язык"),
|
2214
2225
|
types.BotCommand(command="happy", description="🐈 Счастье")]
|
@@ -13726,6 +13737,16 @@ async def edit_simple2(bot, chat_id, user_id, entity_id, post_id, message_id, cu
|
|
13726
13737
|
|
13727
13738
|
|
13728
13739
|
# region fun
|
13740
|
+
def has_non_european_glyph(text):
|
13741
|
+
if text.isascii(): return False
|
13742
|
+
return bool(PAT.search(text))
|
13743
|
+
|
13744
|
+
|
13745
|
+
def has_zalgo(text):
|
13746
|
+
if text.isascii(): return False
|
13747
|
+
return bool(PAT_ZALGO.search(text))
|
13748
|
+
|
13749
|
+
|
13729
13750
|
async def page_tghp_create_for_post(ENT_TID, ENT_USERNAME, ENT_FIRSTNAME, PROJECT_TYPE, BASE_P):
|
13730
13751
|
try:
|
13731
13752
|
ENT_JSONTGPH = None
|
@@ -14261,45 +14282,6 @@ async def get_chat_channel(bot, link, SESSION_D, BASE_S):
|
|
14261
14282
|
return result
|
14262
14283
|
|
14263
14284
|
|
14264
|
-
async def auto_destroy_msg(bot, telegram_bot, chat_id, text, message_id, type_='text', sec=5):
|
14265
|
-
result = None
|
14266
|
-
try:
|
14267
|
-
if not random.choice([0, 1, 1]): return result
|
14268
|
-
|
14269
|
-
step = 1
|
14270
|
-
by = f"<a href='https://t.me/{ferey_telegram_demo_bot}'>by</a>"
|
14271
|
-
text = f"{text}\n\n{by} @{telegram_bot} <b>{sec}</b>sec"
|
14272
|
-
ix_sec = text.rfind('</b>sec')
|
14273
|
-
while text[ix_sec] != '>': ix_sec -= 1
|
14274
|
-
|
14275
|
-
while sec > 0:
|
14276
|
-
try:
|
14277
|
-
text = text.replace(f"<b>{sec}</b>sec", f"<b>{sec - 1}</b>sec")
|
14278
|
-
sec -= step
|
14279
|
-
if type_ == 'text':
|
14280
|
-
await bot.edit_message_text(chat_id=chat_id, text=text, message_id=message_id,
|
14281
|
-
disable_web_page_preview=True)
|
14282
|
-
else:
|
14283
|
-
await bot.edit_message_caption(chat_id=chat_id, message_id=message_id, caption=text)
|
14284
|
-
await asyncio.sleep(1)
|
14285
|
-
except TelegramRetryAfter as e:
|
14286
|
-
logger.info(log_ % f"TelegramRetryAfter {e.retry_after}")
|
14287
|
-
await asyncio.sleep(e.retry_after + 1)
|
14288
|
-
except Exception as e:
|
14289
|
-
logger.info(log_ % str(e))
|
14290
|
-
await asyncio.sleep(round(random.uniform(1, 2), 2))
|
14291
|
-
break
|
14292
|
-
except TelegramRetryAfter as e:
|
14293
|
-
logger.info(log_ % f"TelegramRetryAfter {e.retry_after}")
|
14294
|
-
await asyncio.sleep(e.retry_after + 1)
|
14295
|
-
except Exception as e:
|
14296
|
-
logger.info(e)
|
14297
|
-
await asyncio.sleep(round(random.uniform(1, 2), 2))
|
14298
|
-
finally:
|
14299
|
-
await bot.delete_message(chat_id, message_id)
|
14300
|
-
return result
|
14301
|
-
|
14302
|
-
|
14303
14285
|
async def log_old(txt, LOG_DEFAULT, colour=92):
|
14304
14286
|
try:
|
14305
14287
|
logging.info(f'\033[{colour}m%s\033[0m' % (str(txt)))
|
@@ -0,0 +1,8 @@
|
|
1
|
+
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
+
yeref/l_.py,sha256=xoJp6EPX24iVN-oT5sd164aYL70qGubjrfhGppVQTSs,616374
|
3
|
+
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
+
yeref/yeref.py,sha256=k1ls_ZOe7P2J18w2tE7aRmtm-0qNCImeu__Xpb2i998,1057199
|
5
|
+
yeref-0.29.13.dist-info/METADATA,sha256=1AsOZRCgnkjlM8r8OBUpSEH4gLACCtMXRs4Iwyk3crQ,119
|
6
|
+
yeref-0.29.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.29.13.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.29.13.dist-info/RECORD,,
|
yeref-0.29.11.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
-
yeref/l_.py,sha256=ggONyEMgti3W42kbDg0h5op8Ct2NDBGTmZR3FREG9T8,616356
|
3
|
-
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
-
yeref/yeref.py,sha256=L7n5JyO17YKHB3SEG6Z7wrU6OTlXLbD7dNvIqG4GyzU,1058237
|
5
|
-
yeref-0.29.11.dist-info/METADATA,sha256=4ITCoEch4vkPcyg9R_6-p4Lk8eW-Kn4BMBwVi_dcNZA,119
|
6
|
-
yeref-0.29.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.29.11.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.29.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|