Client class

Inheritance

Constructors

Client({required Stream<Uint8List> receiver, required Sink<Uint8List> sender, required Obfuscation? obfuscation, required Session? session})

Properties

account ↔ ClientAccount
Account part.
latefinalinherited
auth ↔ ClientAuth
Auth part.
latefinalinherited
bots ↔ ClientBots
Bots part.
latefinalinherited
channels ↔ ClientChannels
Channels part.
latefinalinherited
chatlists ↔ ClientChatlists
Chatlists part.
latefinalinherited
contacts ↔ ClientContacts
Contacts part.
latefinalinherited
folders ↔ ClientFolders
Folders part.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
help ↔ ClientHelp
Help part.
latefinalinherited
langpack ↔ ClientLangpack
Langpack part.
latefinalinherited
messages ↔ ClientMessages
Messages part.
latefinalinherited
obfuscation Obfuscation?
final
payments ↔ ClientPayments
Payments part.
latefinalinherited
phone ↔ ClientPhone
Phone part.
latefinalinherited
photos ↔ ClientPhotos
Photos part.
latefinalinherited
premium ↔ ClientPremium
Premium part.
latefinalinherited
receiver Stream<Uint8List>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender Sink<Uint8List>
final
session ↔ Session?
getter/setter pair
stats ↔ ClientStats
Stats part.
latefinalinherited
stickers ↔ ClientStickers
Stickers part.
latefinalinherited
stories ↔ ClientStories
Stories part.
latefinalinherited
stream Stream<UpdatesBase>
no setter
updates ↔ ClientUpdates
Updates part.
latefinalinherited
upload ↔ ClientUpload
Upload part.
latefinalinherited
users ↔ ClientUsers
Users part.
latefinalinherited

Methods

connect() Future<Session>
initConnection<T extends TlObject>({required int apiId, required String deviceModel, required String systemVersion, required String appVersion, required String systemLangCode, required String langPack, required String langCode, InputClientProxyBase? proxy, JSONValueBase? params, required TlMethod query}) Future<Result<T>>
Init Connection.
inherited
invoke(TlMethod method) Future<Result<TlObject>>
Call the specified RPC method on the server.
override
invokeAfterMsg<T extends TlObject>({required int msgId, required TlMethod query}) Future<Result<T>>
Invoke After Msg.
inherited
invokeAfterMsgs<T extends TlObject>({required List<int> msgIds, required TlMethod query}) Future<Result<T>>
Invoke After Msgs.
inherited
invokeWithLayer<T extends TlObject>({required int layer, required TlMethod query}) Future<Result<T>>
Invoke With Layer.
inherited
invokeWithMessagesRange<T extends TlObject>({required MessageRangeBase range, required TlMethod query}) Future<Result<T>>
Invoke With Messages Range.
inherited
invokeWithoutUpdates<T extends TlObject>({required TlMethod query}) Future<Result<T>>
Invoke Without Updates.
inherited
invokeWithTakeout<T extends TlObject>({required int takeoutId, required TlMethod query}) Future<Result<T>>
Invoke With Takeout.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited