Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Fixed uploadStickerFile method
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Feb 14, 2018
1 parent 23d4164 commit d935189
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.6.7]
### Changed
- Fixed uploadStickerFile method

## [1.6.6]
### Changed
- Updated to Telegram Bot API 3.6
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Framework for Telegram Bot API",
"license": "MIT",
"type": "project",
"version": "1.6.6",
"version": "1.6.7",
"authors": [
{
"name": "Luca Patera",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,6 @@ Changelog
All notable changes to this project will be documented [here](https://github.com/Lukasss93/telegrambot-php/blob/master/CHANGELOG.md).

### Recent changes
## [1.6.6]
## [1.6.7]
### Changed
- Updated to Telegram Bot API 3.6
- Fixed uploadStickerFile method
2 changes: 1 addition & 1 deletion src/TelegramBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ public function getStickerSet($name)
*/
public function uploadStickerFile($user_id, $png_sticker)
{
$response = $this->endpoint("getStickerSet", ['user_id' => $user_id, 'png_sticker' => $png_sticker]);
$response = $this->endpoint("uploadStickerFile", ['user_id' => $user_id, 'png_sticker' => $png_sticker]);

/** @var File $object */
$object = $this->mapper->map($response->result, new File());
Expand Down

0 comments on commit d935189

Please sign in to comment.