Skip to content

Commit 9e132d3

Browse files
authored
Merge pull request #885 from noplanman/add_missing_db_fields
Add missing database columns and methods.
2 parents 488f68d + 030e191 commit 9e132d3

File tree

5 files changed

+368
-211
lines changed

5 files changed

+368
-211
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
1010
- `getIsMember()` method to `ChatMember` entity.
1111
- `getForwardSenderName()` method to `Message` entity.
1212
- `forward_sender_name` (and forgotten `forward_signature`) DB fields.
13+
- Added missing API fields to Entities and DB.
14+
- Created database tables for `shipping_query` and `pre_checkout_query`.
1315
### Changed
1416
### Deprecated
1517
### Removed

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)