2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
title: danog\MadelineProto\MyTelegramOrgWrapper: Wrapper for my.telegram.org.
|
|
|
|
description:
|
|
|
|
|
|
|
|
---
|
|
|
|
# `danog\MadelineProto\MyTelegramOrgWrapper`
|
|
|
|
[Back to index](../../index.md)
|
|
|
|
|
|
|
|
> 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
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|