📄 Session Formats
Tdata Format
Structure
tdata/
├── key_data
├── D877F783D5D3EF8C/
│ ├── configs
│ ├── maps
│ └── ...
└── ...
Requirements
- Complete tdata folder from Telegram Desktop
- key_data file must be present
- Account folder (16-character hex)
Pyrogram Format
File Structure
session_name.session (SQLite database)
Requirements
- Valid Pyrogram session file
- Must be SQLite format
- Contains authentication data
Telethon Format
SQLite Format
session_name.session (SQLite database)
String Format
1BVtsOGwBu7xajdEvfPP6Gze...
Base64-encoded session string.
Requirements
- Valid Telethon session file or string
- SQLite or base64 string format
- Contains authentication data
Conversion Notes
Supported Conversions
- Tdata → Pyrogram → Telethon
- Telethon → Pyrogram → Tdata
- All intermediate conversions
Compatibility
- Preserves authentication state
- Maintains datacenter assignment
- API credentials required for operations