mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
Fix ksubot session file ext dup (#1672)
This commit is contained in:
parent
045bc7f6fb
commit
51bc01afde
@ -82,7 +82,7 @@ async def main():
|
|||||||
exit(1)
|
exit(1)
|
||||||
print("[+] Logging in Telegram with bot")
|
print("[+] Logging in Telegram with bot")
|
||||||
script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
||||||
session_dir = os.path.join(script_dir, "ksubot.session")
|
session_dir = os.path.join(script_dir, "ksubot")
|
||||||
async with await TelegramClient(session=session_dir, api_id=API_ID, api_hash=API_HASH).start(bot_token=BOT_TOKEN) as bot:
|
async with await TelegramClient(session=session_dir, api_id=API_ID, api_hash=API_HASH).start(bot_token=BOT_TOKEN) as bot:
|
||||||
caption = [""] * len(files)
|
caption = [""] * len(files)
|
||||||
caption[-1] = get_caption()
|
caption[-1] = get_caption()
|
||||||
@ -98,4 +98,4 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[-] An error occurred: {e}")
|
print(f"[-] An error occurred: {e}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user