TDLib
Loading...
Searching...
No Matches
td::td_api::keyboardButtonTypeRequestChat Class Referencefinal

Inherits td::td_api::KeyboardButtonType.

Public Member Functions

 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_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

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.
 

Static Public Attributes

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

Detailed 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.

Constructor & Destructor Documentation

◆ keyboardButtonTypeRequestChat() [1/2]

td::td_api::keyboardButtonTypeRequestChat::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]

td::td_api::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_ 
)

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.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::keyboardButtonTypeRequestChat::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::keyboardButtonTypeRequestChat::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 td::TlObject.


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