Quick start¶
Install¶
git clone https://github.com/xvDoshik/seshforge.git
cd seshforge
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env
Forge a string¶
Copy SESSION_STRING from stdout into your secret store.
Use as a library¶
import asyncio
from seshforge import Client
API_ID = 2040
API_HASH = "..."
async def main():
client = await Client.create(API_ID, API_HASH, tdata="/path/to/tdata")
me = await client.get_me()
print(me.username, client.session_string[:32], "...")
await client.send_message("me", "seshforge ok")
await client.disconnect()
asyncio.run(main())
After forge¶
Each worker process gets its own memory session - no file locks.