AbstractReadonlyappReadonlychangeChange the primary DC
ReadonlycomputeCompute new password hash for the given algorithm and password
ReadonlycomputeCompute SRP parameters for the given password
Readonlydestroy_Destroy the client and all its resources.
This will terminate any connections to the Telegram servers, free all the resources, and make the client no longer usable
ReadonlydisconnectTerminate any connections to the Telegram servers, but keep the client usable
ReadonlyexportExport current session to a single LONG string, containing all the needed information.
Warning! Anyone with this string will be able to authorize as you and do anything. Treat this as your password, and never give it away!
In case you have accidentally leaked this string, make sure to revoke this session in account settings: "Privacy & Security" > "Active sessions" > find the one containing
mtcute> Revoke, or, in case this is a bot, revoke bot token with @BotFather
ReadonlygetGet the API credentials for use in authorization methods
ReadonlygetGenerate a new time-based MTProto message ID
ReadonlygetGet the number of connections of the given kind
ReadonlygetGet the primary DC ID
ReadonlyhandleHandle an update sent by the server in response to an RPC call
Updates to handle
OptionalnoDispatch: booleanWhether the updates inside should not be dispatched as events
ReadonlyimportImport the session from the given session string.
Note that the session will only be imported in case
the storage is missing authorization (i.e. does not contain
auth key for the primary DC), otherwise it will be ignored (unless force).
Session string to import
Optionalforce: booleanWhether to overwrite existing session
ReadonlylogLogger for the client
ReadonlynotifyNotify the client that a channel has been closed
ReadonlynotifyNotify the client that a channel has been opened
ReadonlynotifyNotify the client that the user has logged in
ReadonlynotifyNotify the client that the user has logged out
Emitted when the connection state changes
Emitted when an error occurs
Emitted when an update is received from the server. Requires updates loop to be running
Emitted when a low-level Updates updates is received
ReadonlyoptionsReadonlyplatformPlatform used by the client
ReadonlyprepareADVANCED
Do all the preparations, but don't connect just yet. Useful when you want to do some preparations before connecting, like setting up session.
Call connect to actually connect.
ReadonlyrecreateADVANCED Recreate the given DC, forcefully using the IP taken from server config.
ReadonlystartStart the updates loop
ReadonlystopSignal that will be aborted when the client is destroyed
ReadonlystopStop the updates loop
ReadonlystorageStorage manager
ReadonlytimersTimers manager
ReadonlyworkerCall an RPC method
Optionalparams: RpcCallOptionsInitialize the connection to the primary DC.
You shouldn't usually call this method directly as it is called implicitly the first time you call call.
Abstractconnect
App config manager