yeref 0.25.42__py3-none-any.whl → 0.25.44__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 +2 -1
- yeref/yeref.py +36 -34
- {yeref-0.25.42.dist-info → yeref-0.25.44.dist-info}/METADATA +1 -1
- yeref-0.25.44.dist-info/RECORD +8 -0
- yeref-0.25.42.dist-info/RECORD +0 -8
- {yeref-0.25.42.dist-info → yeref-0.25.44.dist-info}/WHEEL +0 -0
- {yeref-0.25.42.dist-info → yeref-0.25.44.dist-info}/top_level.txt +0 -0
yeref/l_.py
CHANGED
@@ -13233,6 +13233,7 @@ l_find_need_subscribe = {
|
|
13233
13233
|
'zh': "👩🏽💻<b>要</b>接收消息和客户的链接,请订阅💨订阅@FereyFindBot-bot:\n\nhttps://t.me",
|
13234
13234
|
'ar': "👩🏽💻 <b>للحصول</b> على رابط الرسالة والعميل، اشترك 💨Subscribe to @FereyFindBot-bot:\n\nhttps://t.me",
|
13235
13235
|
}
|
13236
|
+
|
13236
13237
|
# endregion
|
13237
13238
|
|
13238
13239
|
|
@@ -14897,7 +14898,7 @@ l_codex_btn2 = {
|
|
14897
14898
|
'ar': "💨 الاشتراك",
|
14898
14899
|
}
|
14899
14900
|
l_codex_welcome = {
|
14900
|
-
'ru': "🌱 <b>{0}</b>, добро пожаловать в [<b>Кодекс {1}</b>] -
|
14901
|
+
'ru': "🌱 <b>{0}</b>, добро пожаловать в [<b>Кодекс {1}</b>] - <i>@tg-приложение</i> быстрого погружения в новые @tg-инструменты #нейро-маркетинга и блокчейна:\n\n▪️<b>экспресс</b>-интенсив 3 мин\n▪️@tg-<b>приложения</b>\n▪️<b>нейро</b>-инструменты\n▪️<b>веб3</b>-интеграции",
|
14901
14902
|
'en': "🌱 <b>{0}</b>, welcome to the <i>landing bot</i> <b>Ferey</b>-project:\n\n▪️<b>information</b> about projects\n▪️<b>telegraph</b>-/blog",
|
14902
14903
|
'es': "🌱 <b>{0}</b>, bienvenido al <i>bot de aterrizaje</i> <b>Ferey</b>-proyecto:\n\n▪️<b>información</b> sobre proyectos\n▪️<b>telegraph</b>-/blog",
|
14903
14904
|
'fr': "🌱 <b>{0}</b>, bienvenue sur le <i>landing bot</i> <b>Ferey</b>-projet :\n\nlessly<b>informations</b> sur les projets\n▪️<b>télégraphe</b>-/blog",
|
yeref/yeref.py
CHANGED
@@ -7275,38 +7275,38 @@ async def get_link_for_media(bot, chat_id, file_path, KEYS_JSON, is_del=True):
|
|
7275
7275
|
# endregion
|
7276
7276
|
|
7277
7277
|
# region getgems
|
7278
|
-
|
7279
|
-
|
7280
|
-
|
7281
|
-
|
7282
|
-
|
7283
|
-
|
7284
|
-
|
7285
|
-
|
7286
|
-
|
7287
|
-
|
7288
|
-
|
7289
|
-
|
7290
|
-
|
7291
|
-
|
7292
|
-
|
7293
|
-
|
7294
|
-
|
7295
|
-
|
7296
|
-
|
7297
|
-
|
7298
|
-
|
7299
|
-
|
7300
|
-
|
7301
|
-
|
7302
|
-
|
7303
|
-
|
7304
|
-
|
7305
|
-
|
7306
|
-
|
7307
|
-
|
7308
|
-
|
7309
|
-
|
7278
|
+
len_ = len(data["media"]["getgems"])
|
7279
|
+
random_index = random.randint(0, len_ - 1)
|
7280
|
+
getgems_token = data["media"]["getgems"][random_index]
|
7281
|
+
|
7282
|
+
try:
|
7283
|
+
random_sequence = await generate_random_sequence()
|
7284
|
+
url = f"https://api.getgems.io/upload-media?type=Nft&sign={random_sequence}"
|
7285
|
+
if not getgems_token: raise Exception
|
7286
|
+
r1 = random.randint(15, 19)
|
7287
|
+
r2 = random.randint(7, 19)
|
7288
|
+
r3 = random.randint(605, 655)
|
7289
|
+
r4 = random.randint(1, 9)
|
7290
|
+
r5 = random.randint(15, 29)
|
7291
|
+
r6 = random.randint(17, 29)
|
7292
|
+
r7 = random.randint(4, 9)
|
7293
|
+
r8 = random.randint(1, 9)
|
7294
|
+
|
7295
|
+
user_agent = f'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_{r1}_{r2}) AppleWebKit/{r3}.{r4}.{r5} (KHTML, like Gecko) Version/{r6}.{r7}.{r8} Safari/{r3}.{r4}.{r5}'
|
7296
|
+
headers = {'User-Agent': user_agent, 'x-auth-token': getgems_token, }
|
7297
|
+
form_data = aiohttp.FormData()
|
7298
|
+
form_data.add_field('file', open(file_path, 'rb'), filename=base_name)
|
7299
|
+
|
7300
|
+
async with aiohttp.ClientSession() as session:
|
7301
|
+
async with session.post(url, data=form_data, headers=headers) as response:
|
7302
|
+
res = await response.json()
|
7303
|
+
logger.info(log_ % str(res) + "getgems +++ ")
|
7304
|
+
result = await check_image(res['fileUrl'])
|
7305
|
+
return
|
7306
|
+
except Exception as e:
|
7307
|
+
logger.info(log_ % str(e))
|
7308
|
+
# await asyncio.sleep(round(random.uniform(0, 1), 2))
|
7309
|
+
if bot: await bot.send_message(my_tid, str(e))
|
7310
7310
|
# endregion
|
7311
7311
|
|
7312
7312
|
# region pinata
|
@@ -9278,7 +9278,7 @@ async def list_star_invoice_link(bot, PROJECT_USERNAME, PROJECT_TYPE):
|
|
9278
9278
|
r_ = await star_invoice_link(bot, PROJECT_USERNAME, chat_id, stars, payload)
|
9279
9279
|
print(f"star_invoice_link_{stars} = '{r_}'")
|
9280
9280
|
|
9281
|
-
stars =
|
9281
|
+
stars = 2
|
9282
9282
|
payload = 'list'
|
9283
9283
|
r_ = await star_invoice_link(bot, PROJECT_USERNAME, chat_id, stars, payload)
|
9284
9284
|
print(f"star_invoice_list_{stars} = '{r_}'")
|
@@ -17768,7 +17768,7 @@ async def correct_link(link):
|
|
17768
17768
|
|
17769
17769
|
if '@' in link and '/' in link: link = link[:link.index('/')]
|
17770
17770
|
link = str(link).rstrip('/').rstrip('.').rstrip(':').strip()
|
17771
|
-
result = None if link in ['@None', '@'] else link
|
17771
|
+
result = None if link in ['@None', '@', '@https'] else link
|
17772
17772
|
except Exception as e:
|
17773
17773
|
logger.info(log_ % str(e))
|
17774
17774
|
await asyncio.sleep(round(random.uniform(1, 2), 2))
|
@@ -19386,6 +19386,8 @@ async def in_ban_list(tid, username=None):
|
|
19386
19386
|
5105772611, # Z Yuan
|
19387
19387
|
5438448668, # JQ 1, en
|
19388
19388
|
6126573233, # @icticiy, en
|
19389
|
+
5152639222, # 彩虹代发 看我主页 None, en
|
19390
|
+
7535872701, # @KEDA1SIEMON
|
19389
19391
|
]
|
19390
19392
|
|
19391
19393
|
if username and username.startswith('kwprod'):
|
@@ -0,0 +1,8 @@
|
|
1
|
+
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
+
yeref/l_.py,sha256=hhI3TWDNK_LhACWbaOamuhcGDiT-Y8jJg7Ue_G2pZyA,1120041
|
3
|
+
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
+
yeref/yeref.py,sha256=gQf6J8O7HJtgdgLKZDWaK6I656_ooFPmPXmKyjbR8V4,1025193
|
5
|
+
yeref-0.25.44.dist-info/METADATA,sha256=DRr9tBCcIM3t_vCVZ7az-8roWzFPBveJKBpFIfyB3bA,119
|
6
|
+
yeref-0.25.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.25.44.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.25.44.dist-info/RECORD,,
|
yeref-0.25.42.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
-
yeref/l_.py,sha256=bkHakU9Kj3xcKBchne9zwoq2jr037N78bqq4nE9PfpA,1120030
|
3
|
-
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
-
yeref/yeref.py,sha256=2lCbi8KmtPoWLM86DmmVkYObGbb-UiHnx17Fje0RCo8,1025139
|
5
|
-
yeref-0.25.42.dist-info/METADATA,sha256=ytET4V90oQYQkD6lkGprZkWbv8H03evpWDjRNW9W17w,119
|
6
|
-
yeref-0.25.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.25.42.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.25.42.dist-info/RECORD,,
|
File without changes
|
File without changes
|