yeref 0.25.41__py3-none-any.whl → 0.25.43__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 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
 
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
- # 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))
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))
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
@@ -9174,6 +9174,14 @@ async def pay_handler_for_all(bot, message, ideas_en, ideas_ru, PROJECT_USERNAME
9174
9174
  'DT_END': DT_END,
9175
9175
  'AMOUNT': total_amount
9176
9176
  })
9177
+ elif payload == 'list':
9178
+ USER_PAYMENTS.append({
9179
+ 'TYPE': 'LST',
9180
+ 'LOAD': payload,
9181
+ 'DT_START': DT_START,
9182
+ 'DT_END': DT_END,
9183
+ 'AMOUNT': total_amount
9184
+ })
9177
9185
  elif payload in ['material']:
9178
9186
  USER_PAYMENTS.append({
9179
9187
  'TYPE': 'MAT',
@@ -9270,6 +9278,11 @@ async def list_star_invoice_link(bot, PROJECT_USERNAME, PROJECT_TYPE):
9270
9278
  r_ = await star_invoice_link(bot, PROJECT_USERNAME, chat_id, stars, payload)
9271
9279
  print(f"star_invoice_link_{stars} = '{r_}'")
9272
9280
 
9281
+ stars = 2
9282
+ payload = 'list'
9283
+ r_ = await star_invoice_link(bot, PROJECT_USERNAME, chat_id, stars, payload)
9284
+ print(f"star_invoice_list_{stars} = '{r_}'")
9285
+
9273
9286
  stars = 10
9274
9287
  payload = 'donate'
9275
9288
  r_ = await star_invoice_link(bot, PROJECT_USERNAME, chat_id, stars, payload)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.25.41
3
+ Version: 0.25.43
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -0,0 +1,8 @@
1
+ yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
+ yeref/l_.py,sha256=xJ2cVj2SPAqwoyWgOQtFFt-6GzmjmyGfES9Mxd2uaLM,1120031
3
+ yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
+ yeref/yeref.py,sha256=TTEd-Db6kzWdWscmMjOmx0JRPTU_0loMB2B1IyeA0Xs,1025071
5
+ yeref-0.25.43.dist-info/METADATA,sha256=faFkSgE39y4pzJhncEYdgpMLMmeSxKAT5shUNQtnys8,119
6
+ yeref-0.25.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.25.43.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.25.43.dist-info/RECORD,,
@@ -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=HT4ZvzT7Bgsiij8l1omuWesrn1gSVhYFqAM0hPoZDWg,1024700
5
- yeref-0.25.41.dist-info/METADATA,sha256=73P75uZh4oQ5wJwfE6qU78DBN17pPm8cASDaEXRzPE4,119
6
- yeref-0.25.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.25.41.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.25.41.dist-info/RECORD,,