Skip to content

Commit 9010a8e

Browse files
committed
Merge branch 'api-5.7' into develop
2 parents ff974ee + 5037b52 commit 9010a8e

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
88
- [:ledger: View file changes][Unreleased]
99
### Added
1010
- Bot API 5.6 (@TiiFuchs) (#1275)
11+
- Bot API 5.7 (@TiiFuchs) (#1284)
1112
### Changed
1213
### Deprecated
1314
### Removed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
A Telegram Bot based on the official [Telegram Bot API]
99

10-
[![API Version](https://img.shields.io/badge/Bot%20API-5.6%20%28December%202021%29-32a2da.svg)](https://core.telegram.org/bots/api#december-30-2021)
10+
[![API Version](https://img.shields.io/badge/Bot%20API-5.7%20%28January%202022%29-32a2da.svg)](https://core.telegram.org/bots/api#december-30-2021)
1111
[![Join the bot support group on Telegram](https://img.shields.io/badge/telegram-@PHP__Telegram__Bot__Support-64659d.svg)](https://telegram.me/PHP_Telegram_Bot_Support)
1212
[![Donate](https://img.shields.io/badge/%F0%9F%92%99-Donate%20%2F%20Support%20Us-blue.svg)](#donate)
1313

@@ -78,7 +78,7 @@ This Bot aims to provide a platform where one can simply write a bot and have in
7878

7979
The Bot can:
8080
- Retrieve updates with [webhook](#webhook-installation) and [getUpdates](#getupdates-installation) methods.
81-
- Supports all types and methods according to Telegram Bot API 5.6 (December 2021).
81+
- Supports all types and methods according to Telegram Bot API 5.7 (January 2022).
8282
- Supports supergroups.
8383
- Handle commands in chat with other bots.
8484
- Manage Channel from the bot admin interface.
@@ -389,15 +389,15 @@ The reason for denying an update can be defined with the `$reason` parameter. Th
389389

390390
### Types
391391

392-
All types are implemented according to Telegram API 5.6 (December 2021).
392+
All types are implemented according to Telegram API 5.7 (January 2022).
393393

394394
### Inline Query
395395

396-
Full support for inline query according to Telegram API 5.6 (December 2021).
396+
Full support for inline query according to Telegram API 5.7 (January 2022).
397397

398398
### Methods
399399

400-
All methods are implemented according to Telegram API 5.6 (December 2021).
400+
All methods are implemented according to Telegram API 5.7 (January 2022).
401401

402402
#### Send Message
403403

src/Entities/Sticker.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Longman\TelegramBot\Entities;
1313

14+
use phpDocumentor\Reflection\Types\Boolean;
15+
1416
/**
1517
* Class Sticker
1618
*
@@ -21,6 +23,7 @@
2123
* @method int getWidth() Sticker width
2224
* @method int getHeight() Sticker height
2325
* @method bool getIsAnimated() True, if the sticker is animated
26+
* @method bool getIsVideo() True, if the sticker is a video sticker
2427
* @method PhotoSize getThumb() Optional. Sticker thumbnail in .webp or .jpg format
2528
* @method string getEmoji() Optional. Emoji associated with the sticker
2629
* @method string getSetName() Optional. Name of the sticker set to which the sticker belongs

src/Entities/StickerSet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* @method string getName() Sticker set name
2020
* @method string getTitle() Sticker set title
2121
* @method bool getIsAnimated() True, if the sticker set contains animated stickers
22+
* @method bool getIsVideo() True, if the sticker set contains video stickers
2223
* @method bool getContainsMasks() True, if the sticker set contains masks
2324
* @method Sticker[] getStickers() List of all set stickers
2425
* @method PhotoSize getThumb() Optional. Sticker set thumbnail in the .WEBP or .TGS format

src/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ class Request
289289
'setChatPhoto' => ['photo'],
290290
'sendSticker' => ['sticker'],
291291
'uploadStickerFile' => ['png_sticker'],
292-
'createNewStickerSet' => ['png_sticker', 'tgs_sticker'],
293-
'addStickerToSet' => ['png_sticker', 'tgs_sticker'],
292+
'createNewStickerSet' => ['png_sticker', 'tgs_sticker', 'webm_sticker'],
293+
'addStickerToSet' => ['png_sticker', 'tgs_sticker', 'webm_sticker'],
294294
'setStickerSetThumb' => ['thumb'],
295295
];
296296

0 commit comments

Comments
 (0)