Skip to content

Commit

Permalink
Add support for Bot API 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Stajor committed Dec 8, 2021
1 parent a2249fa commit a11a23a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
* @method GameHighScore[] getGameHighScores(array $params)
* @method bool approveChatJoinRequest(array $params)
* @method bool declineChatJoinRequest(array $params)
* @method bool banChatSenderChat(array $params)
* @method bool unbanChatSenderChat(array $params)
*/
class Api {
const API_URL = 'https://api.telegram.org';
Expand Down Expand Up @@ -184,7 +186,9 @@ class Api {
'setGameScore' => [],
'getGameHighScores' => ['return' => GameHighScore::class, 'array' => true],
'approveChatJoinRequest' => [],
'declineChatJoinRequest' => []
'declineChatJoinRequest' => [],
'banChatSenderChat' => [],
'unbanChatSenderChat' => []
];

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Types/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ class Chat extends Type {
public ?int $slow_mode_delay = null;
public ?string $sticker_set_name = null;
public ?bool $can_set_sticker_set = null;
public ?bool $has_private_forwards = null;
public ?bool $has_protected_content = null;
}
2 changes: 2 additions & 0 deletions src/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,6 @@ class Message extends Type {
public ?VoiceChatEnded $voice_chat_ended = null;
public ?VoiceChatParticipantsInvited $voice_chat_participants_invited = null;
public ?InlineKeyboardMarkup $reply_markup = null;
public ?bool $has_protected_content = null;
public ?bool $is_automatic_forward = null;
}

0 comments on commit a11a23a

Please sign in to comment.