MadelineProtoDocs/docs/botLogin.md

23 lines
470 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
2020-01-05 17:55:38 +01:00
title: botLogin
description: botLogin parameters, return type and example
redirect_from: /bot_login.html
2018-04-01 13:19:25 +02:00
---
2020-01-05 17:55:38 +01:00
## Method: botLogin
2018-04-01 13:19:25 +02:00
### 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
```