2017-08-18 13:27:44 +02:00
|
|
|
---
|
|
|
|
title: bot_login
|
|
|
|
description: bot_login parameters, return type and example
|
|
|
|
---
|
|
|
|
## Method: bot_login
|
|
|
|
|
|
|
|
|
|
|
|
### Parameters:
|
|
|
|
|
|
|
|
| Name | Type |
|
2017-08-20 17:35:23 +02:00
|
|
|
|----------|---------------|
|
2017-08-18 13:27:44 +02:00
|
|
|
|token| A string with the bot token|
|
|
|
|
|
|
|
|
### Return type: [auth.Authorization](API_docs/types/auth_Authorization.md)
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
$MadelineProto = new \danog\MadelineProto\API();
|
|
|
|
|
|
|
|
$authorization = $this->bot_login($token);
|
|
|
|
```
|