mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
31 lines
986 B
Markdown
31 lines
986 B
Markdown
---
|
|
title: "inlineBotSwitchPM"
|
|
description: "The bot requested the user to message them in private"
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: inlineBotSwitchPM
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
The bot requested the user to message them in private
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|text|[string](/API_docs/types/string.html) | Yes|Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter `start_parameter` (can be empty)|
|
|
|start\_param|[string](/API_docs/types/string.html) | Yes|The parameter for the `/start parameter`|
|
|
|
|
|
|
|
|
### Type: [InlineBotSwitchPM](/API_docs/types/InlineBotSwitchPM.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$inlineBotSwitchPM = ['_' => 'inlineBotSwitchPM', 'text' => 'string', 'start_param' => 'string'];
|
|
```
|