Skip to content

Commit 107fde8

Browse files
committed
Update to Telegram Bot API 6.6
1 parent 59d3d1f commit 107fde8

File tree

2 files changed

+133
-2
lines changed

2 files changed

+133
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![StyleCI](https://styleci.io/repos/635079074/shield?branch=master)](https://styleci.io/repos/635079074)
99

1010
A very simple PHP [Telegram Bot API](https://core.telegram.org/bots).
11-
Compliant with the December 30, 2022 Telegram Bot API update.
11+
Compliant with the March 9, 2023 Telegram Bot API update.
1212

1313
Requirements
1414
---------

Telegram.php

Lines changed: 132 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,54 @@ public function setMyCommands(array $content): array
628628
return $this->endpoint('setMyCommands', $content);
629629
}
630630

631+
/**
632+
* See <a href="https://core.telegram.org/bots/api#getMyShortDescription">getMyShortDescription</a> for the input values.
633+
*
634+
* @param $content array the request parameters as array
635+
*
636+
* @return array the JSON Telegram's reply.
637+
*/
638+
public function getMyShortDescription(array $content): array
639+
{
640+
return $this->endpoint('getMyShortDescription', $content);
641+
}
642+
643+
/**
644+
* See <a href="https://core.telegram.org/bots/api#setMyShortDescription">setMyShortDescription</a> for the input values.
645+
*
646+
* @param $content array the request parameters as array
647+
*
648+
* @return array the JSON Telegram's reply.
649+
*/
650+
public function setMyShortDescription(array $content): array
651+
{
652+
return $this->endpoint('setMyShortDescription', $content);
653+
}
654+
655+
/**
656+
* See <a href="https://core.telegram.org/bots/api#getMyDescription">getMyDescription</a> for the input values.
657+
*
658+
* @param $content array the request parameters as array
659+
*
660+
* @return array the JSON Telegram's reply.
661+
*/
662+
public function getMyDescription(array $content): array
663+
{
664+
return $this->endpoint('getMyDescription', $content);
665+
}
666+
667+
/**
668+
* See <a href="https://core.telegram.org/bots/api#setMyDescription">setMyDescription</a> for the input values.
669+
*
670+
* @param $content array the request parameters as array
671+
*
672+
* @return array the JSON Telegram's reply.
673+
*/
674+
public function setMyDescription(array $content): array
675+
{
676+
return $this->endpoint('setMyDescription', $content);
677+
}
678+
631679
/**
632680
* See <a href="https://core.telegram.org/bots/api#deletemycommands">deleteMyCommands</a> for the input values.
633681
*
@@ -1786,6 +1834,30 @@ public function createNewStickerSet(array $content): array
17861834
return $this->endpoint('createNewStickerSet', $content);
17871835
}
17881836

1837+
/**
1838+
* See <a href="https://core.telegram.org/bots/api#setStickerSetTitle">setStickerSetTitle</a> for the input values.
1839+
*
1840+
* @param $content array the request parameters as array
1841+
*
1842+
* @return array the JSON Telegram's reply.
1843+
*/
1844+
public function setStickerSetTitle(array $content): array
1845+
{
1846+
return $this->endpoint('setStickerSetTitle', $content);
1847+
}
1848+
1849+
/**
1850+
* See <a href="https://core.telegram.org/bots/api#deleteStickerSet">deleteStickerSet</a> for the input values.
1851+
*
1852+
* @param $content array the request parameters as array
1853+
*
1854+
* @return array the JSON Telegram's reply.
1855+
*/
1856+
public function deleteStickerSet(array $content): array
1857+
{
1858+
return $this->endpoint('deleteStickerSet', $content);
1859+
}
1860+
17891861
/**
17901862
* See <a href="https://core.telegram.org/bots/api#addstickertoset">addStickerToSet</a> for the input values.
17911863
*
@@ -1823,7 +1895,66 @@ public function deleteStickerFromSet(array $content): array
18231895
}
18241896

18251897
/**
1826-
* See <a href="https://core.telegram.org/bots/api#setstickersetthumb">setStickerSetThumb</a> for the input values.
1898+
* See <a href="https://core.telegram.org/bots/api#setStickerEmojiList">setStickerEmojiList</a> for the input values.
1899+
*
1900+
* @param $content array the request parameters as array
1901+
*
1902+
* @return array the JSON Telegram's reply.
1903+
*/
1904+
public function setStickerEmojiList(array $content): array
1905+
{
1906+
return $this->endpoint('setStickerEmojiList', $content);
1907+
}
1908+
1909+
/**
1910+
* See <a href="https://core.telegram.org/bots/api#setStickerKeywords">setStickerKeywords</a> for the input values.
1911+
*
1912+
* @param $content array the request parameters as array
1913+
*
1914+
* @return array the JSON Telegram's reply.
1915+
*/
1916+
public function setStickerKeywords(array $content): array
1917+
{
1918+
return $this->endpoint('setStickerKeywords', $content);
1919+
}
1920+
1921+
/**
1922+
* See <a href="https://core.telegram.org/bots/api#setStickerMaskPosition">setStickerMaskPosition</a> for the input values.
1923+
*
1924+
* @param $content array the request parameters as array
1925+
*
1926+
* @return array the JSON Telegram's reply.
1927+
*/
1928+
public function setStickerMaskPosition(array $content): array
1929+
{
1930+
return $this->endpoint('setStickerMaskPosition', $content);
1931+
}
1932+
1933+
/**
1934+
* See <a href="https://core.telegram.org/bots/api#setCustomEmojiStickerSetThumbnail">setCustomEmojiStickerSetThumbnail</a> for the input values.
1935+
* @param $content array the request parameters as array
1936+
*
1937+
* @return array the JSON Telegram's reply.
1938+
*/
1939+
public function setCustomEmojiStickerSetThumbnail(array $content): array
1940+
{
1941+
return $this->endpoint('setCustomEmojiStickerSetThumbnail', $content);
1942+
}
1943+
1944+
/**
1945+
* See <a href="https://core.telegram.org/bots/api#setStickerSetThumbnail">setStickerSetThumbnail</a> for the input values.
1946+
* @param $content array the request parameters as array
1947+
*
1948+
* @return array the JSON Telegram's reply.
1949+
*/
1950+
public function setStickerSetThumbnail(array $content): array
1951+
{
1952+
return $this->endpoint('setStickerSetThumbnail', $content);
1953+
}
1954+
1955+
/**
1956+
* See <a href="https://core.telegram.org/bots/api#setStickerSetThumbnail">setStickerSetThumbnail</a> for the input values.
1957+
* @deprecated Use setStickerSetThumbnail() instead
18271958
*
18281959
* @param $content array the request parameters as array
18291960
*

0 commit comments

Comments
 (0)