yeref 0.24.29__tar.gz → 0.24.31__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.
- {yeref-0.24.29 → yeref-0.24.31}/PKG-INFO +1 -1
- {yeref-0.24.29 → yeref-0.24.31}/setup.py +1 -1
- {yeref-0.24.29 → yeref-0.24.31}/yeref/yeref.py +7 -5
- {yeref-0.24.29 → yeref-0.24.31}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.29 → yeref-0.24.31}/pyproject.toml +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/setup.cfg +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/yeref/__init__.py +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/yeref/l_.py +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/yeref/tonweb.js +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.29 → yeref-0.24.31}/yeref.egg-info/top_level.txt +0 -0
@@ -15511,7 +15511,7 @@ async def get_vars_web_main(chat_id, username, full_name, lc, is_premium, utm_we
|
|
15511
15511
|
return is_paid, till_paid, lz
|
15512
15512
|
|
15513
15513
|
|
15514
|
-
async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, req_url=''):
|
15514
|
+
async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, req_url='', utm=''):
|
15515
15515
|
chat_id = int(web_app_init_data.get('user', {}).get('id'))
|
15516
15516
|
username = web_app_init_data.get('user', {}).get('username', None)
|
15517
15517
|
first_name = web_app_init_data.get('user', {}).get('first_name', '')
|
@@ -15570,10 +15570,12 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
|
|
15570
15570
|
USER_VARS['USER_ISPREMIUM'] = is_premium
|
15571
15571
|
lz = USER_VARS.get('USER_LZ', 'en')
|
15572
15572
|
|
15573
|
-
|
15573
|
+
print(f"before {USER_VARS=}")
|
15574
|
+
if not USER_VARS.get('USER_DT') and not USER_VARS.get('USER_UTM') and utm:
|
15575
|
+
USER_VARS['USER_UTM'] = utm
|
15576
|
+
if not USER_VARS.get('USER_DT'):
|
15574
15577
|
USER_VARS['USER_DT'] = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
|
15575
|
-
|
15576
|
-
# USER_VARS['USER_UTM'] = utm
|
15578
|
+
print(f"after {USER_VARS=}")
|
15577
15579
|
# endregion
|
15578
15580
|
|
15579
15581
|
# region tx
|
@@ -15982,7 +15984,7 @@ async def post_save(bot, data_user, data_web, MEDIA_D, BASE_P, KEYS_JSON, PROJEC
|
|
15982
15984
|
print(f"--------------------------------------------------------")
|
15983
15985
|
print(f"after {POST_MEDIA=}")
|
15984
15986
|
|
15985
|
-
if PROJECT_USERNAME == 'FereyPostBot' and POST_TYPE in ['voice', 'audio'] and 'filev_id' not in POST_MEDIA[0]:
|
15987
|
+
if PROJECT_USERNAME == 'FereyPostBot' and POST_TYPE in ['voice', 'audio'] and len(POST_MEDIA) == 1 and 'filev_id' not in POST_MEDIA[0]:
|
15986
15988
|
asyncio.create_task(convert_to_vinyl(bot, chat_id, ENT_TID, POST_TID, MEDIA_D, EXTRA_D, POST_MEDIA, BASE_P))
|
15987
15989
|
|
15988
15990
|
# region pay
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|