mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.6 KiB
1.6 KiB
title | description | nav_exclude | image |
---|---|---|---|
messageActionBotAllowed | We have given the bot permission to send us direct messages. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: messageActionBotAllowed
We have given the bot permission to send us direct messages.
The optional fields specify how did we authorize the bot to send us messages.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
attach_menu | Bool | Optional | We have authorized the bot to send us messages by installing the bot's attachment menu. |
from_request | Bool | Optional | We have allowed the bot to send us messages using bots.allowSendMessage ». |
domain | string | Optional | We have authorized the bot to send us messages by logging into a website via Telegram Login »; this field contains the domain name of the website on which the user has logged in. |
app | BotApp | Optional | We have authorized the bot to send us messages by opening the specified bot mini app. |
Type: MessageAction
Example:
$messageActionBotAllowed = ['_' => 'messageActionBotAllowed', 'attach_menu' => Bool, 'from_request' => Bool, 'domain' => 'string', 'app' => BotApp];