java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.KeyboardButtonType
it.tdlight.jni.TdApi.KeyboardButtonTypeRequestUser
- Enclosing class:
- TdApi
A button that requests a user to be
shared by the current user; available
only in private chats. Use the method
shareUserWithBot to complete the request.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
int
Unique button identifier.boolean
True, if the shared user must or must not be a bot.boolean
True, if the shared user must or must not be a Telegram Premium user.boolean
True, if the shared user must be a bot; otherwise, the shared user must no be a bot.boolean
True, if the shared user must be a Telegram Premium user; otherwise, the shared user must no be a Telegram Premium user. -
Constructor Summary
ConstructorDescriptionA button that requests a user to be shared by the current user; available only in private chats.KeyboardButtonTypeRequestUser
(int id, boolean restrictUserIsBot, boolean userIsBot, boolean restrictUserIsPremium, boolean userIsPremium) A button that requests a user to be shared by the current user; available only in private chats.A button that requests a user 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. -
restrictUserIsBot
public boolean restrictUserIsBotTrue, if the shared user must or must not be a bot. -
userIsBot
public boolean userIsBotTrue, if the shared user must be a bot; otherwise, the shared user must no be a bot. Ignored if restrictUserIsBot is false. -
restrictUserIsPremium
public boolean restrictUserIsPremiumTrue, if the shared user must or must not be a Telegram Premium user. -
userIsPremium
public boolean userIsPremiumTrue, if the shared user must be a Telegram Premium user; otherwise, the shared user must no be a Telegram Premium user. Ignored if restrictUserIsPremium is false. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
KeyboardButtonTypeRequestUser
public KeyboardButtonTypeRequestUser()A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot to complete the request. -
KeyboardButtonTypeRequestUser
public KeyboardButtonTypeRequestUser(int id, boolean restrictUserIsBot, boolean userIsBot, boolean restrictUserIsPremium, boolean userIsPremium) A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot to complete the request.- Parameters:
id
- int Unique button identifier.restrictUserIsBot
- boolean True, if the shared user must or must not be a bot.userIsBot
- boolean True, if the shared user must be a bot; otherwise, the shared user must no be a bot. Ignored if restrictUserIsBot is false.restrictUserIsPremium
- boolean True, if the shared user must or must not be a Telegram Premium user.userIsPremium
- boolean True, if the shared user must be a Telegram Premium user; otherwise, the shared user must no be a Telegram Premium user. Ignored if restrictUserIsPremium is false.
-
KeyboardButtonTypeRequestUser
A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot 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()
-