Skip to content

Commit

Permalink
Update to v6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mahlenko committed Sep 22, 2023
1 parent 5847c25 commit 9b6dac9
Show file tree
Hide file tree
Showing 275 changed files with 610 additions and 556 deletions.
2 changes: 1 addition & 1 deletion src/Interface/GamesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @gamebot and @gamee bots.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface GamesInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/InlineModeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* after typing your bot's name.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface InlineModeInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/MethodsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* containing the result will be returned.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface MethodsInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/PaymentsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Telegram v.4.0 or higher to use payments (released on May 18, 2017).
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface PaymentsInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/StickersInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* and sticker sets.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface StickersInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/TelegramPassportInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* details.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface TelegramPassportInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/TypesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Optional fields may be not returned when irrelevant.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface TypesInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/UpdatesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* JSON-serialized Update objects as a result.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface UpdatesInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/UpdatingMessagesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* without reply_markup or with inline keyboards.
*
*
* @version Bot API 6.8
* @version Bot API 6.9
* @author Sergey Makhlenko <https://github.com/mahlenko>
*/
interface UpdatingMessagesInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/AddStickerToSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\StickersInterface;
use TelegramBot\TelegramMethod;
use TelegramBot\Types\InputSticker;

/**
Expand All @@ -15,7 +15,7 @@
* Animated and video sticker sets can have up to 50 stickers. Static
* sticker sets can have up to 120 stickers. Returns True on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class AddStickerToSet extends TelegramMethod implements StickersInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/AnswerCallbackQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to send answers to callback queries sent from inline
Expand All @@ -18,7 +18,7 @@
* @BotFather and accept the terms. Otherwise, you may use links like
* t.me/your_bot?start=XXXX that open your bot with a parameter.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class AnswerCallbackQuery extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/AnswerInlineQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\InlineModeInterface;
use TelegramBot\TelegramMethod;
use TelegramBot\Types\InlineQueryResult;
use TelegramBot\Types\InlineQueryResultsButton;

/**
* Use this method to send answers to an inline query. On success, True
* is returned.No more than 50 results per query are allowed.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class AnswerInlineQuery extends TelegramMethod implements InlineModeInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/AnswerPreCheckoutQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\PaymentsInterface;
use TelegramBot\TelegramMethod;

/**
* Once the user has confirmed their payment and shipping details, the
Expand All @@ -15,7 +15,7 @@
* must receive an answer within 10 seconds after the pre-checkout query
* was sent.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class AnswerPreCheckoutQuery extends TelegramMethod implements PaymentsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/AnswerShippingQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\PaymentsInterface;
use TelegramBot\TelegramMethod;
use TelegramBot\Types\ShippingOption;

/**
Expand All @@ -14,7 +14,7 @@
* shipping_query field to the bot. Use this method to reply to shipping
* queries. On success, True is returned.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class AnswerShippingQuery extends TelegramMethod implements PaymentsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/AnswerWebAppQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\InlineModeInterface;
use TelegramBot\TelegramMethod;
use TelegramBot\Types\InlineQueryResult;

/**
Expand All @@ -14,7 +14,7 @@
* which the query originated. On success, a SentWebAppMessage object is
* returned.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class AnswerWebAppQuery extends TelegramMethod implements InlineModeInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/ApproveChatJoinRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to approve a chat join request. The bot must be an
* administrator in the chat for this to work and must have the
* can_invite_users administrator right. Returns True on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class ApproveChatJoinRequest extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/BanChatMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to ban a user in a group, a supergroup or a channel.
Expand All @@ -15,7 +15,7 @@
* to work and must have the appropriate administrator rights. Returns
* True on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class BanChatMember extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/BanChatSenderChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to ban a channel chat in a supergroup or a channel.
Expand All @@ -15,7 +15,7 @@
* must have the appropriate administrator rights. Returns True on
* success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class BanChatSenderChat extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/Close.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to close the bot instance before moving it from one
Expand All @@ -15,7 +15,7 @@
* after the bot is launched. Returns True on success. Requires no
* parameters.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class Close extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/CloseForumTopic.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to close an open topic in a forum supergroup chat. The
* bot must be an administrator in the chat for this to work and must
* have the can_manage_topics administrator rights, unless it is the
* creator of the topic. Returns True on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class CloseForumTopic extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/CloseGeneralForumTopic.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to close an open 'General' topic in a forum supergroup
* chat. The bot must be an administrator in the chat for this to work
* and must have the can_manage_topics administrator rights. Returns True
* on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class CloseGeneralForumTopic extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/CopyMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;
use TelegramBot\Types\ForceReply;
use TelegramBot\Types\InlineKeyboardMarkup;
use TelegramBot\Types\MessageEntity;
Expand All @@ -20,7 +20,7 @@
* message doesn't have a link to the original message. Returns the
* MessageId of the sent message on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class CopyMessage extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/CreateChatInviteLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to create an additional invite link for a chat. The
Expand All @@ -14,7 +14,7 @@
* using the method revokeChatInviteLink. Returns the new invite link as
* ChatInviteLink object.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class CreateChatInviteLink extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/CreateForumTopic.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\MethodsInterface;
use TelegramBot\TelegramMethod;

/**
* Use this method to create a topic in a forum supergroup chat. The bot
* must be an administrator in the chat for this to work and must have
* the can_manage_topics administrator rights. Returns information about
* the created topic as a ForumTopic object.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class CreateForumTopic extends TelegramMethod implements MethodsInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Methods/CreateInvoiceLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

namespace TelegramBot\Methods;

use TelegramBot\TelegramMethod;
use TelegramBot\Interface\PaymentsInterface;
use TelegramBot\TelegramMethod;
use TelegramBot\Types\LabeledPrice;

/**
* Use this method to create a link for an invoice. Returns the created
* invoice link as String on success.
*
* Bot API 6.8
* Bot API 6.9
* Sergey Makhlenko <https://github.com/mahlenko>
*/
class CreateInvoiceLink extends TelegramMethod implements PaymentsInterface
Expand Down
Loading

0 comments on commit 9b6dac9

Please sign in to comment.