List of all members | Public Fields | Public Instance Methods | Static Public Attributes
keyboardButtonTypeRequestChat Class Referencefinal

Inherits KeyboardButtonType.

Description

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< chatAdministratorRightsuser_administrator_rights_
 Expected user administrator rights in the chat; may be null if they aren't restricted.
 
object_ptr< chatAdministratorRightsbot_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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 1511138485
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ keyboardButtonTypeRequestChat() [1/2]

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.

Method Documentation

◆ 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]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: