Link Search Menu Expand Document

danog\MadelineProto\MyTelegramOrgWrapper

Back to index

Author: Daniil Gentili daniil@daniil.it

Wrapper for my.telegram.org.

Method list:

  • login(string $number): \Generator
  • completeLogin(string $password): \Generator
  • loggedIn(): bool
  • hasApp(): \Generator
  • getApp(): \Generator
  • createApp(array $settings): \Generator
  • async(bool $async): void
  • loop(callable $callable): mixed

Methods:

login(string $number): \Generator

Login.

Parameters:

  • $number: string Phone number

See also:

  • \Generator

completeLogin(string $password): \Generator

Complete login.

Parameters:

  • $password: string Password

See also:

  • \Generator

loggedIn(): bool

Whether we are logged in.

hasApp(): \Generator

Check if an app was already created.

See also:

  • \Generator

getApp(): \Generator

Get the currently created app.

See also:

  • \Generator

createApp(array $settings): \Generator

Create an app.

Parameters:

  • $settings: array App parameters

See also:

  • \Generator

async(bool $async): void

Enable or disable async.

Parameters:

  • $async: bool Async

loop(callable $callable): mixed

Run specified callable synchronously.

Parameters:

  • $callable: callable Callable

Generated by danog/phpdoc