View Source ExTDLib.Method.CheckChatUsername (ExTDLib v0.0.4)
Checks whether a username can be set for a chat. Returns object_ptr<CheckChatUsernameResult>.
| Name | Type | Description |
|---|---|---|
| chat_id | string | 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. |
| username | string | Username to be checked. |
More details on telegram's documentation.