1.6 KiB
1.6 KiB
title: userTypeBot
description: Bot (see https: core.telegram.org/bots)
Constructor: userTypeBot
Bot (see https: core.telegram.org/bots)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
can_join_group_chats | Bool | Yes | If true, bot can be invited to group and supergroup chats |
can_read_all_group_chat_messages | Bool | Yes | If true, bot can read all group or supergroup chat messages, not only addressed to him. In private chats bot always can read all messages |
is_inline | Bool | Yes | True, if bot supports inline queries |
inline_query_placeholder | string | Yes | Placeholder for inline query |
need_location | Bool | Yes | If true, user location should be sent with every inline query to this bot |
Type: UserType
Example:
$userTypeBot = ['_' => 'userTypeBot', 'can_join_group_chats' => Bool, 'can_read_all_group_chat_messages' => Bool, 'is_inline' => Bool, 'inline_query_placeholder' => string, 'need_location' => Bool, ];
PWRTelegram json-encoded version:
{"_":"userTypeBot","can_join_group_chats":"Bool","can_read_all_group_chat_messages":"Bool","is_inline":"Bool","inline_query_placeholder":"string","need_location":"Bool"}
Or, if you're into Lua:
userTypeBot={_='userTypeBot', can_join_group_chats=Bool, can_read_all_group_chat_messages=Bool, is_inline=Bool, inline_query_placeholder=string, need_location=Bool, }