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)
  • completeLogin(string $password)
  • loggedIn(): bool
  • hasApp()
  • getApp()
  • createApp(array $settings)
  • async(bool $async)
  • loop(callable $callable)

Methods:

login(string $number)

Login.

Parameters:

  • $number: string Phone number

completeLogin(string $password)

Complete login.

Parameters:

  • $password: string Password

loggedIn(): bool

Whether we are logged in.

hasApp()

Check if an app was already created.

getApp()

Get the currently created app.

createApp(array $settings)

Create an app.

Parameters:

  • $settings: array App parameters

async(bool $async)

Enable or disable async.

Parameters:

  • $async: bool Async

loop(callable $callable)

Run specified callable synchronously.

Parameters:

  • $callable: callable Callable

Generated by danog/phpdoc