Link Search Menu Expand Document

danog\MadelineProto\TL\TLInterface

Back to index

Author: Daniil Gentili daniil@daniil.it

Method list:

Methods:

getConstructors(): \danog\MadelineProto\TL\TLConstructors

Get constructors.

See also:

  • \danog\MadelineProto\TL\TLConstructors

getMethods(): \danog\MadelineProto\TL\TLMethods

Get methods.

See also:

  • \danog\MadelineProto\TL\TLMethods

getDescriptions(): array

Get descriptions.

getMethodNamespaces(): array

Get TL namespaces.

getMethodsNamespaced(): array

Get namespaced methods (method => namespace).

serializeObject(array $type, mixed $object, string $ctx, integer $layer = -1)

Serialize TL object.

Parameters:

  • $type: array TL type definition
  • $object: mixed Object to serialize
  • $ctx: string Context
  • $layer: integer Layer version

serializeMethod(string $method, mixed $arguments)

Serialize method.

Parameters:

  • $method: string Method name
  • $arguments: mixed Arguments

getLength((resource|string) $stream, array $type = [ 'type' => '',]): int

Get length of TL payload.

Parameters:

  • $stream: (resource|string) Stream
  • $type: array Type identifier

See also:

  • resource

deserialize((string|resource) $stream, array $type)

Deserialize TL object.

Parameters:

  • $stream: (string|resource) Stream
  • $type: array Type identifier

See also:

  • resource

getSecretLayer(): int

Get secret chat layer version.


Generated by danog/phpdoc