Inherits KeyboardButtonType.
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request.
Public Fields | |
| int32 | id_ |
| Unique button identifier. | |
| bool | chat_is_channel_ |
| True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared. | |
| bool | restrict_chat_is_forum_ |
| True, if the chat must or must not be a forum supergroup. | |
| bool | chat_is_forum_ |
| True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false. | |
| bool | restrict_chat_has_username_ |
| True, if the chat must or must not have a username. | |
| bool | chat_has_username_ |
| True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false. | |
| bool | chat_is_created_ |
| True, if the chat must be created by the current user. | |
| object_ptr< chatAdministratorRights > | user_administrator_rights_ |
| Expected user administrator rights in the chat; may be null if they aren't restricted. | |
| object_ptr< chatAdministratorRights > | bot_administrator_rights_ |
| Expected bot administrator rights in the chat; may be null if they aren't restricted. | |
| bool | bot_is_member_ |
| True, if the bot must be a member of the chat; for basic group and supergroup chats only. | |
| bool | request_title_ |
| Pass true to request title of the chat; bots only. | |
| bool | request_username_ |
| Pass true to request username of the chat; bots only. | |
| bool | request_photo_ |
| Pass true to request photo of the chat; bots only. | |
Public Instance Methods | |
| keyboardButtonTypeRequestChat () | |
| keyboardButtonTypeRequestChat (int32 id_, bool chat_is_channel_, bool restrict_chat_is_forum_, bool chat_is_forum_, bool restrict_chat_has_username_, bool chat_has_username_, bool chat_is_created_, object_ptr< chatAdministratorRights > &&user_administrator_rights_, object_ptr< chatAdministratorRights > &&bot_administrator_rights_, bool bot_is_member_, bool request_title_, bool request_username_, bool request_photo_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 1511138485 |
| Identifier uniquely determining a type of the object. | |
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request.
| keyboardButtonTypeRequestChat | ( | int32 | id_, |
| bool | chat_is_channel_, | ||
| bool | restrict_chat_is_forum_, | ||
| bool | chat_is_forum_, | ||
| bool | restrict_chat_has_username_, | ||
| bool | chat_has_username_, | ||
| bool | chat_is_created_, | ||
| object_ptr< chatAdministratorRights > && | user_administrator_rights_, | ||
| object_ptr< chatAdministratorRights > && | bot_administrator_rights_, | ||
| bool | bot_is_member_, | ||
| bool | request_title_, | ||
| bool | request_username_, | ||
| bool | request_photo_ | ||
| ) |
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request.
| [in] | id_ | Unique button identifier. |
| [in] | chat_is_channel_ | True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared. |
| [in] | restrict_chat_is_forum_ | True, if the chat must or must not be a forum supergroup. |
| [in] | chat_is_forum_ | True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false. |
| [in] | restrict_chat_has_username_ | True, if the chat must or must not have a username. |
| [in] | chat_has_username_ | True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false. |
| [in] | chat_is_created_ | True, if the chat must be created by the current user. |
| [in] | user_administrator_rights_ | Expected user administrator rights in the chat; may be null if they aren't restricted. |
| [in] | bot_administrator_rights_ | Expected bot administrator rights in the chat; may be null if they aren't restricted. |
| [in] | bot_is_member_ | True, if the bot must be a member of the chat; for basic group and supergroup chats only. |
| [in] | request_title_ | Pass true to request title of the chat; bots only. |
| [in] | request_username_ | Pass true to request username of the chat; bots only. |
| [in] | request_photo_ | Pass true to request photo of the chat; bots only. |
|
finalvirtual |