1 | <?php |
||
15 | * No more than 50 results per query are allowed. |
||
16 | * |
||
17 | * Objects defined as-is july 2016 |
||
18 | * |
||
19 | * @see https://core.telegram.org/bots/api#answerinlinequery |
||
20 | */ |
||
21 | class AnswerInlineQuery extends TelegramMethods |
||
22 | { |
||
23 | /** |
||
24 | * Unique identifier for the answered query |
||
25 | * @var string |
||
26 | */ |
||
27 | public $inline_query_id = ''; |
||
28 | |||
29 | /** |
||
30 | * A JSON-serialized array (of InlineQueryResult) of results for the inline query |
||
31 | * @var array |
||
32 | */ |
||
33 | public $results = []; |
||
34 | |||
35 | /** |
||
36 | * Optional. The maximum amount of time in seconds that the result of the inline query may be cached on the server. |
||
37 | * Defaults to 300. |
||
38 | * @var int |
||
39 | */ |
||
40 | public $cache_time = 300; |
||
41 | |||
42 | /** |
||
43 | * Optional. Pass True, if results may be cached on the server side only for the user that sent the query. By |
||
44 | * default, results may be returned to any user who sends the same query |
||
45 | * @var bool |
||
46 | */ |
||
47 | public $is_personal = false; |
||
48 | |||
49 | /** |
||
50 | * Optional. Pass the offset that a client should send in the next query with the same text to receive more results. |
||
51 | * Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t |
||
52 | * exceed 64 bytes. |
||
53 | * @var string |
||
54 | */ |
||
55 | public $next_offset = ''; |
||
56 | |||
57 | /** |
||
58 | * Optional. If passed, clients will display a button with specified text that switches the user to a private chat |
||
59 | * with the bot and sends the bot a start message with the parameter switch_pm_parameter |
||
60 | * @var string |
||
61 | */ |
||
62 | public $switch_pm_text = ''; |
||
63 | |||
90 |