Inherits Function.
Checks whether a username can be set for a chat.
Returns object_ptr<CheckChatUsernameResult>.
Public Fields | |
| int53 | chat_id_ |
| Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created. | |
| string | username_ |
| Username to be checked. | |
Public Types | |
| using | ReturnType = object_ptr< CheckChatUsernameResult > |
| Typedef for the type returned by the function. | |
Public Instance Methods | |
| checkChatUsername () | |
| checkChatUsername (int53 chat_id_, string const &username_) | |
| 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 = -119119344 |
| Identifier uniquely determining a type of the object. | |
Default constructor for a function, which checks whether a username can be set for a chat.
Returns object_ptr<CheckChatUsernameResult>.
| checkChatUsername | ( | int53 | chat_id_, |
| string const & | username_ | ||
| ) |
Creates a function, which checks whether a username can be set for a chat.
Returns object_ptr<CheckChatUsernameResult>.
| [in] | chat_id_ | Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created. |
| [in] | username_ | Username to be checked. |
|
finalvirtual |