public static class TdApi.UserTypeBot extends TdApi.UserType
TdApi.UserType.Constructors
Modifier and Type | Field and Description |
---|---|
boolean |
canJoinGroups
True, if the bot can be invited to basic group and supergroup chats.
|
boolean |
canReadAllGroupMessages
True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
inlineQueryPlaceholder
Placeholder for inline queries (displayed on the application input field).
|
boolean |
isInline
True, if the bot supports inline queries.
|
boolean |
needLocation
True, if the location of the user is expected to be sent with every inline query to this bot.
|
Constructor and Description |
---|
UserTypeBot()
A bot (see https://core.telegram.org/bots).
|
UserTypeBot(boolean canJoinGroups,
boolean canReadAllGroupMessages,
boolean isInline,
java.lang.String inlineQueryPlaceholder,
boolean needLocation)
A bot (see https://core.telegram.org/bots).
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean canJoinGroups
public boolean canReadAllGroupMessages
public boolean isInline
public java.lang.String inlineQueryPlaceholder
public boolean needLocation
public static final int CONSTRUCTOR
public UserTypeBot()
public UserTypeBot(boolean canJoinGroups, boolean canReadAllGroupMessages, boolean isInline, java.lang.String inlineQueryPlaceholder, boolean needLocation)
canJoinGroups
- True, if the bot can be invited to basic group and supergroup chats.canReadAllGroupMessages
- True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages.isInline
- True, if the bot supports inline queries.inlineQueryPlaceholder
- Placeholder for inline queries (displayed on the application input field).needLocation
- True, if the location of the user is expected to be sent with every inline query to this bot.public int getConstructor()
getConstructor
in class TdApi.UserType