Skip to Content
ReferenceOverview

Reference

Every public name of the three ecosystems, with its signature as the source declares it and one line on what it does. Each ecosystem has its own pages; the concepts explain the ideas and the guides show the names at work.

One core, three surfaces

The three packages share one Rust core, so a name in one ecosystem usually has a twin in the others.

TaskPythonNodeRust
Load a tdata folderTDesktop("tdata")loadTdataTData::load
Telethon string sessiontelethon_string_sessiontelethonStringSessiontelethon::StringSession
mtcute string sessionmtcute_string_sessiontoStringSessionmtcute::StringSession
.session + .json pairSaveSessionJsonsaveSessionPairtelethon_file
Official API profileAPI.TelegramDesktopprofileapi::profile
Generated deviceGenerategenerateapi::generate
Validate initConnectionvalidate_init_connection_paramsvalidateInitParamsvalidate_init_params
Consistency checksRunConsistencyChecksrunConsistencyChecksrun_consistency_checks
Browser headersHeaderGeneratorgenerateHeadersgenerate_headers
Live client versionsfetched on importfetchVersionsfetch_all

The Rust names live in opentele2-core, except run_consistency_checks (opentele2-grammers, feature client), generate_headers (opentele2-browser) and fetch_all (opentele2-versions); runConsistencyChecks and toStringSession come from opentele2/mtcute.

Warning:

Many names here take or return auth keys, session strings and tdata folders. Each of them is a logged-in account: keep them out of logs, issues and commits.

Last updated on