java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.KeyboardButtonType
it.tdlight.jni.TdApi.KeyboardButtonTypeRequestChat
- Enclosing class:
- TdApi
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.
-
Field Summary
Modifier and TypeFieldDescriptionExpected bot administrator rights in the chat; may be null if they aren't restricted.boolean
True, if the bot must be a member of the chat; for basic group and supergroup chats only.boolean
True, if the chat must have a username; otherwise, the chat must not have a username.boolean
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.boolean
True, if the chat must be created by the current user.boolean
True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup.static final int
int
Unique button identifier.boolean
True, if the chat must or must not have a username.boolean
True, if the chat must or must not be a forum supergroup.Expected user administrator rights in the chat; may be null if they aren't restricted. -
Constructor Summary
ConstructorDescriptionA 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) A button that requests a chat to be shared by the current user; available only in private chats.A button that requests a chat to be shared by the current user; available only in private chats. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public int idUnique button identifier. -
chatIsChannel
public boolean chatIsChannelTrue, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared. -
restrictChatIsForum
public boolean restrictChatIsForumTrue, if the chat must or must not be a forum supergroup. -
chatIsForum
public boolean chatIsForumTrue, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrictChatIsForum is false. -
restrictChatHasUsername
public boolean restrictChatHasUsernameTrue, if the chat must or must not have a username. -
chatHasUsername
public boolean chatHasUsernameTrue, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrictChatHasUsername is false. -
chatIsCreated
public boolean chatIsCreatedTrue, 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
public boolean botIsMemberTrue, if the bot must be a member of the chat; for basic group and supergroup chats only. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
KeyboardButtonTypeRequestChat
public 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
public KeyboardButtonTypeRequestChat(int id, boolean chatIsChannel, boolean restrictChatIsForum, boolean chatIsForum, boolean restrictChatHasUsername, boolean chatHasUsername, boolean chatIsCreated, TdApi.ChatAdministratorRights userAdministratorRights, TdApi.ChatAdministratorRights botAdministratorRights, boolean botIsMember) 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:
id
- int Unique button identifier.chatIsChannel
- boolean True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.restrictChatIsForum
- boolean True, if the chat must or must not be a forum supergroup.chatIsForum
- boolean True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrictChatIsForum is false.restrictChatHasUsername
- boolean True, if the chat must or must not have a username.chatHasUsername
- boolean True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrictChatHasUsername is false.chatIsCreated
- boolean True, if the chat must be created by the current user.userAdministratorRights
- ChatAdministratorRights Expected user administrator rights in the chat; may be null if they aren't restricted.botAdministratorRights
- ChatAdministratorRights Expected bot administrator rights in the chat; may be null if they aren't restricted.botIsMember
- boolean True, if the bot must be a member of the chat; for basic group and supergroup chats only.
-
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.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-