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.
|
| | 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 |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| | TlObject ()=default |
| | TlObject (const TlObject &)=delete |
| | TlObject (TlObject &&)=default |
| virtual | ~TlObject ()=default |
|
|
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 | 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_channel_ |
| | True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.
|
|
bool | chat_is_created_ |
| | True, if the chat must be created by the current user.
|
|
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.
|
|
int32 | id_ |
| | Unique button identifier.
|
|
bool | request_photo_ |
| | Pass true to request photo of the chat; bots 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 | restrict_chat_has_username_ |
| | True, if the chat must or must not have a username.
|
|
bool | restrict_chat_is_forum_ |
| | True, if the chat must or must not be a forum supergroup.
|
|
object_ptr< chatAdministratorRights > | user_administrator_rights_ |
| | Expected user administrator rights in the chat; may be null if they aren't restricted.
|
|
|
static const std::int32_t | ID = 1511138485 |
| | Identifier uniquely determining a type of the object.
|
◆ keyboardButtonTypeRequestChat() [1/2]
| keyboardButtonTypeRequestChat |
( |
| ) |
|
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() [2/2]
| 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.
- Parameters
-
| [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. |
◆ store()
| void store |
( |
TlStorerToString & | s, |
|
|
const char * | field_name ) const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: