MadelineProtoDocs/docs/bot_login.md

25 lines
485 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: bot_login
description: bot_login parameters, return type and example
---
## Method: bot_login
### Parameters:
| Name | Type |
|----------|---------------|
|token| A string with the bot token|
### Return type: [auth.Authorization](API_docs/types/auth_Authorization.md)
### Example:
```php
2019-06-01 17:42:45 +02:00
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->async(true);
2018-04-01 13:19:25 +02:00
2019-06-01 17:42:45 +02:00
$authorization = [yield](ASYNC.html) $this->bot_login($token);
2018-04-01 13:19:25 +02:00
```