chore(userbot): apply ruff check --fix and ruff format
- ruff check --fix: 210 auto-fixed errors (import sorting, trailing whitespace, unused imports, f-string fixups, deprecated annotations) - ruff format: 104 files reformatted to consistent style - 268 non-auto-fixable issues remain (S113 requests timeout, etc.)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from pyrogram import Client, enums
|
||||
|
||||
api_id = input("Enter Your API ID: \n")
|
||||
api_hash = input("Enter Your API HASH : \n")
|
||||
api_id = input('Enter Your API ID: \n')
|
||||
api_hash = input('Enter Your API HASH : \n')
|
||||
|
||||
with Client("my_account", api_id=api_id, api_hash=api_hash, hide_password=True) as bot_:
|
||||
with Client('my_account', api_id=api_id, api_hash=api_hash, hide_password=True) as bot_:
|
||||
first_name = (bot_.get_me()).first_name
|
||||
string_session_ = f"<b><u>String Session For {first_name}</b></u> \n<code>{bot_.export_session_string()}</code>"
|
||||
bot_.send_message("me", string_session_, parse_mode=enums.ParseMode.HTML, disable_web_page_preview=True)
|
||||
print(f"String Has Been Sent To Your Saved Message : {first_name}")
|
||||
string_session_ = f'<b><u>String Session For {first_name}</b></u> \n<code>{bot_.export_session_string()}</code>'
|
||||
bot_.send_message('me', string_session_, parse_mode=enums.ParseMode.HTML, disable_web_page_preview=True)
|
||||
print(f'String Has Been Sent To Your Saved Message : {first_name}')
|
||||
|
||||
Reference in New Issue
Block a user