Commit c31598f6 authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #633 from noplanman/missing_payment_methods

Correctly add payment methods to Request class.
parents af4b257c 78de7b4c
...@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ...@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased] ## [Unreleased]
### Added ### Added
- Donation section and links in readme. - Donation section and links in readme.
- Missing payment methods in `Request` class.
### Changed ### Changed
- Updated and optimised all DB classes, removing a lot of bulky code. - Updated and optimised all DB classes, removing a lot of bulky code.
### Deprecated ### Deprecated
......
...@@ -66,6 +66,9 @@ use Longman\TelegramBot\Exception\TelegramException; ...@@ -66,6 +66,9 @@ use Longman\TelegramBot\Exception\TelegramException;
* @method static ServerResponse addStickerToSet(array $data) Use this method to add a new sticker to a set created by the bot. Returns True on success. * @method static ServerResponse addStickerToSet(array $data) Use this method to add a new sticker to a set created by the bot. Returns True on success.
* @method static ServerResponse setStickerPositionInSet(array $data) Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success. * @method static ServerResponse setStickerPositionInSet(array $data) Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.
* @method static ServerResponse deleteStickerFromSet(array $data) Use this method to delete a sticker from a set created by the bot. Returns True on success. * @method static ServerResponse deleteStickerFromSet(array $data) Use this method to delete a sticker from a set created by the bot. Returns True on success.
* @method static ServerResponse sendInvoice(array $data) Use this method to send invoices. On success, the sent Message is returned.
* @method static ServerResponse answerShippingQuery(array $data) If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
* @method static ServerResponse answerPreCheckoutQuery(array $data) Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned.
*/ */
class Request class Request
{ {
...@@ -138,7 +141,6 @@ class Request ...@@ -138,7 +141,6 @@ class Request
'sendLocation', 'sendLocation',
'sendVenue', 'sendVenue',
'sendContact', 'sendContact',
'sendInvoice',
'sendChatAction', 'sendChatAction',
'getUserProfilePhotos', 'getUserProfilePhotos',
'getFile', 'getFile',
...@@ -160,8 +162,6 @@ class Request ...@@ -160,8 +162,6 @@ class Request
'getChatMember', 'getChatMember',
'answerCallbackQuery', 'answerCallbackQuery',
'answerInlineQuery', 'answerInlineQuery',
'answerShippingQuery',
'answerPreCheckoutQuery',
'editMessageText', 'editMessageText',
'editMessageCaption', 'editMessageCaption',
'editMessageReplyMarkup', 'editMessageReplyMarkup',
...@@ -172,6 +172,9 @@ class Request ...@@ -172,6 +172,9 @@ class Request
'addStickerToSet', 'addStickerToSet',
'setStickerPositionInSet', 'setStickerPositionInSet',
'deleteStickerFromSet', 'deleteStickerFromSet',
'sendInvoice',
'answerShippingQuery',
'answerPreCheckoutQuery',
]; ];
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment