MadelineProtoDocs/docs/botLogin.md

22 lines
442 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)
2019-06-01 18:08:28 +02:00
### Example ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
2018-04-01 13:19:25 +02:00
```php
2019-10-29 22:23:35 +01:00
$authorization = yield $this->botLogin($token);
2018-04-01 13:19:25 +02:00
```