public class ChosenInlineResultImpl extends Object implements ChosenInlineResult
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJson()
Gets the JSONObject that was sent by the bot API to produce this object
|
static ChosenInlineResult |
createChosenInlineResult(org.json.JSONObject jsonObject) |
String |
getInlineMessageId()
Gets the ID of the sent inline message relating to this result
|
Location |
getLocation()
Gets the location of the User that chose the result
|
String |
getQuery()
Gets the original query that was sent to produce this result
|
String |
getResultId()
Gets the result ID for the chosen inline result
|
User |
getSender()
Gets the User that chose the result
|
public static ChosenInlineResult createChosenInlineResult(org.json.JSONObject jsonObject)
public String getResultId()
ChosenInlineResultgetResultId in interface ChosenInlineResultpublic User getSender()
ChosenInlineResultgetSender in interface ChosenInlineResultpublic Location getLocation()
ChosenInlineResultgetLocation in interface ChosenInlineResultpublic String getInlineMessageId()
ChosenInlineResultgetInlineMessageId in interface ChosenInlineResultpublic String getQuery()
ChosenInlineResultgetQuery in interface ChosenInlineResultpublic org.json.JSONObject asJson()
ChosenInlineResultasJson in interface ChosenInlineResultCopyright © 2017. All rights reserved.