Skip to content

Commit 030e191

Browse files
committed
Add missing Update request helpers to Command class.
1 parent 1f816d9 commit 030e191

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Commands/Command.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Longman\TelegramBot\Entities\ChosenInlineResult;
1616
use Longman\TelegramBot\Entities\InlineQuery;
1717
use Longman\TelegramBot\Entities\Message;
18+
use Longman\TelegramBot\Entities\Payments\PreCheckoutQuery;
19+
use Longman\TelegramBot\Entities\Payments\ShippingQuery;
20+
use Longman\TelegramBot\Entities\Poll;
1821
use Longman\TelegramBot\Entities\Update;
1922
use Longman\TelegramBot\Request;
2023
use Longman\TelegramBot\Telegram;
@@ -31,6 +34,9 @@
3134
* @method InlineQuery getInlineQuery() Optional. New incoming inline query
3235
* @method ChosenInlineResult getChosenInlineResult() Optional. The result of an inline query that was chosen by a user and sent to their chat partner.
3336
* @method CallbackQuery getCallbackQuery() Optional. New incoming callback query
37+
* @method ShippingQuery getShippingQuery() Optional. New incoming shipping query. Only for invoices with flexible price
38+
* @method PreCheckoutQuery getPreCheckoutQuery() Optional. New incoming pre-checkout query. Contains full information about checkout
39+
* @method Poll getPoll() Optional. New poll state. Bots receive only updates about polls, which are sent or stopped by the bot
3440
*/
3541
abstract class Command
3642
{

0 commit comments

Comments
 (0)