Skip to content

Commit

Permalink
no more session string issues 😁
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Jun 1, 2020
1 parent fafee3d commit f433c3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion genStrSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ async def genStrSession() -> None:
api_id=int(os.environ.get("API_ID") or input("Enter Telegram APP ID: ")),
api_hash=os.environ.get("API_HASH") or input("Enter Telegram API HASH: ")
) as userge:
print(f"\nHere Your String -> {userge.export_session_string()}")
print("\nDone !, session string has been sent to saved messages!")
await userge.send_message(
"me", f"#USERGE #HU_STRING_SESSION\n\n```{userge.export_session_string()}```")

if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(genStrSession())

0 comments on commit f433c3d

Please sign in to comment.