Package it.tdlight.jni
Class TdApi.InternalLinkTypeGame
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InternalLinkType
it.tdlight.jni.TdApi.InternalLinkTypeGame
- Enclosing class:
- TdApi
public static class TdApi.InternalLinkTypeGame extends TdApi.InternalLinkType
The link is a link to a game. Call
searchPublicChat with the given bot
username, check that the user is a
bot, ask the current user to select
a chat to send the game, and then call
sendMessage with inputMessageGame.
-
Field Summary
Fields Modifier and Type Field Description String
botUsername
Username of the bot that owns the game.static int
CONSTRUCTOR
String
gameShortName
Short name of the game. -
Constructor Summary
Constructors Constructor Description InternalLinkTypeGame()
The link is a link to a game.InternalLinkTypeGame(DataInput input)
InternalLinkTypeGame(String botUsername, String gameShortName)
The link is a link to a game. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
botUsername
Username of the bot that owns the game. -
gameShortName
Short name of the game. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
InternalLinkTypeGame
public InternalLinkTypeGame()The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame. -
InternalLinkTypeGame
The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame.- Parameters:
botUsername
- String Username of the bot that owns the game.gameShortName
- String Short name of the game.
-
InternalLinkTypeGame
- 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()
-