Skip to content

Commit

Permalink
Fix ksubot session file ext dup (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 authored Apr 26, 2024
1 parent 045bc7f commit 51bc01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ksubot.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def main():
exit(1)
print("[+] Logging in Telegram with bot")
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:
caption = [""] * len(files)
caption[-1] = get_caption()
Expand All @@ -98,4 +98,4 @@ async def main():
try:
asyncio.run(main())
except Exception as e:
print(f"[-] An error occurred: {e}")
print(f"[-] An error occurred: {e}")

0 comments on commit 51bc01a

Please sign in to comment.