public static class TdApi.ShareUsersWithBot extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
int |
buttonId
Identifier of the button.
|
long |
chatId
Identifier of the chat with the bot.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
messageId
Identifier of the message with the button.
|
boolean |
onlyCheck
Pass true to check that the users can be shared by the button instead of actually sharing them.
|
long[] |
sharedUserIds
Identifiers of the shared users.
|
| Constructor and Description |
|---|
ShareUsersWithBot()
Default constructor for a function, which shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.
|
ShareUsersWithBot(long chatId,
long messageId,
int buttonId,
long[] sharedUserIds,
boolean onlyCheck)
Creates a function, which shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageId
public int buttonId
public long[] sharedUserIds
public boolean onlyCheck
public static final int CONSTRUCTOR
public ShareUsersWithBot()
Returns Ok
public ShareUsersWithBot(long chatId,
long messageId,
int buttonId,
long[] sharedUserIds,
boolean onlyCheck)
Returns Ok
chatId - Identifier of the chat with the bot.messageId - Identifier of the message with the button.buttonId - Identifier of the button.sharedUserIds - Identifiers of the shared users.onlyCheck - Pass true to check that the users can be shared by the button instead of actually sharing them.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object