MadelineProtoDocs/docs/PHPInternal/danog/MadelineProto/TON/Lite.md

1.5 KiB

title: danog\MadelineProto\TON\Lite: TON API. description:

danog\MadelineProto\TON\Lite

Back to index

Author: Daniil Gentili daniil@daniil.it

TON API.

Method list:

  • connect(string $config): \Generator
  • logger(string $param, int $level, string $file): void
  • methodCall(string $methodName, array $args): \Generator
  • loop(callable $func): \Generator
  • botAPItoMTProto(array $parameters): \Generator
  • getMethodNamespaces(): array

Methods:

connect(string $config): \Generator

Connect to the lite endpoints specified in the config file.

Parameters:

  • $config: string Path to config file

See also:

  • \Generator

logger(string $param, int $level, string $file): void

Logger.

Parameters:

  • $param: string Parameter
  • $level: int Logging level
  • $file: string File where the message originated

methodCall(string $methodName, array $args): \Generator

Call lite method.

Parameters:

  • $methodName: string Method name
  • $args: array Arguments

See also:

  • \Generator

loop(callable $func): \Generator

Asynchronously run async callable.

Parameters:

  • $func: callable Function

See also:

  • \Generator

botAPItoMTProto(array $parameters): \Generator

Convert parameters.

Parameters:

  • $parameters: array Parameters

See also:

  • \Generator

getMethodNamespaces(): array

Get TL method namespaces.


Generated by danog/phpdoc