Skip to Content
GuidesOverview

Guides

Each guide is one task from start to finish, with every step shown in Python, Node and Rust. Where an ecosystem has no equivalent, its tab says what to use instead. The concepts explain the ideas behind the steps; the reference for Python, Node and Rust lists every name they use.

Warning:

tdata folders, session strings, .session files and auth keys are logged-in accounts. Work on copies, never share them and keep them out of logs, issues and commits.

Sessions from tdata

Pairs and the way back

Fingerprints and checks

Before you start

  • Install the package for your ecosystem: see Installation.
  • The examples load a folder called tdata next to the script. Copy the folder of a logged-in Telegram Desktop there; never point a script at the folder Telegram Desktop itself is using.
  • Python examples import opentele2, which fetches the current client versions once at import. Set OPENTELE_NO_FETCH=1 to stay offline; see Live client versions.
Last updated on