public static class TdApi.KeyboardButtonTypeRequestChat extends TdApi.KeyboardButtonType
| Modifier and Type | Field and Description |
|---|---|
TdApi.ChatAdministratorRights |
botAdministratorRights
Expected bot administrator rights in the chat; may be null if they aren't restricted.
|
boolean |
botIsMember
True, if the bot must be a member of the chat; for basic group and supergroup chats only.
|
boolean |
chatHasUsername
True, if the chat must have a username; otherwise, the chat must not have a username.
|
boolean |
chatIsChannel
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.
|
boolean |
chatIsCreated
True, if the chat must be created by the current user.
|
boolean |
chatIsForum
True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
id
Unique button identifier.
|
boolean |
requestPhoto
Pass true to request photo of the chat; bots only.
|
boolean |
requestTitle
Pass true to request title of the chat; bots only.
|
boolean |
requestUsername
Pass true to request username of the chat; bots only.
|
boolean |
restrictChatHasUsername
True, if the chat must or must not have a username.
|
boolean |
restrictChatIsForum
True, if the chat must or must not be a forum supergroup.
|
TdApi.ChatAdministratorRights |
userAdministratorRights
Expected user administrator rights in the chat; may be null if they aren't restricted.
|
| Constructor and Description |
|---|
KeyboardButtonTypeRequestChat()
A button that requests a chat to be shared by the current user; available only in private chats.
|
KeyboardButtonTypeRequestChat(int id,
boolean chatIsChannel,
boolean restrictChatIsForum,
boolean chatIsForum,
boolean restrictChatHasUsername,
boolean chatHasUsername,
boolean chatIsCreated,
TdApi.ChatAdministratorRights userAdministratorRights,
TdApi.ChatAdministratorRights botAdministratorRights,
boolean botIsMember,
boolean requestTitle,
boolean requestUsername,
boolean requestPhoto)
A button that requests a chat to be shared by the current user; available only in private chats.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int id
public boolean chatIsChannel
public boolean restrictChatIsForum
public boolean chatIsForum
public boolean restrictChatHasUsername
public boolean chatHasUsername
public boolean chatIsCreated
public TdApi.ChatAdministratorRights userAdministratorRights
public TdApi.ChatAdministratorRights botAdministratorRights
public boolean botIsMember
public boolean requestTitle
public boolean requestUsername
public boolean requestPhoto
public static final int CONSTRUCTOR
public KeyboardButtonTypeRequestChat()
public KeyboardButtonTypeRequestChat(int id,
boolean chatIsChannel,
boolean restrictChatIsForum,
boolean chatIsForum,
boolean restrictChatHasUsername,
boolean chatHasUsername,
boolean chatIsCreated,
TdApi.ChatAdministratorRights userAdministratorRights,
TdApi.ChatAdministratorRights botAdministratorRights,
boolean botIsMember,
boolean requestTitle,
boolean requestUsername,
boolean requestPhoto)
id - Unique button identifier.chatIsChannel - True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.restrictChatIsForum - True, if the chat must or must not be a forum supergroup.chatIsForum - True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrictChatIsForum is false.restrictChatHasUsername - True, if the chat must or must not have a username.chatHasUsername - True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrictChatHasUsername is false.chatIsCreated - True, if the chat must be created by the current user.userAdministratorRights - Expected user administrator rights in the chat; may be null if they aren't restricted.botAdministratorRights - Expected bot administrator rights in the chat; may be null if they aren't restricted.botIsMember - True, if the bot must be a member of the chat; for basic group and supergroup chats only.requestTitle - Pass true to request title of the chat; bots only.requestUsername - Pass true to request username of the chat; bots only.requestPhoto - Pass true to request photo of the chat; bots only.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object