Skip to content

Commit 40feed1

Browse files
committed
Update to Telegram Bot API 6.3
1 parent 79c5e66 commit 40feed1

File tree

2 files changed

+86
-2
lines changed

2 files changed

+86
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TelegramBotPHP
2-
[![API](https://img.shields.io/badge/Telegram%20Bot%20API-August%2012,%202022-36ade1.svg)](https://core.telegram.org/bots/api)
2+
[![API](https://img.shields.io/badge/Telegram%20Bot%20API-November%205,%202022-36ade1.svg)](https://core.telegram.org/bots/api)
33
![PHP](https://img.shields.io/badge/php-%3E%3D7.4-8892bf.svg)
44
![CURL](https://img.shields.io/badge/cURL-required-green.svg)
55

@@ -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 August 12, 2022 Telegram Bot API update.
11+
Compliant with the November 5, 2022 Telegram Bot API update.
1212

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

Telegram.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,90 @@ public function unpinAllChatMessages(array $content): array
15941594
return $this->endpoint('unpinAllChatMessages', $content);
15951595
}
15961596

1597+
/**
1598+
* See <a href="https://core.telegram.org/bots/api#createForumTopic">createForumTopic</a> for the input values.
1599+
*
1600+
* @param $content array the request parameters as array
1601+
*
1602+
* @return array the JSON Telegram's reply.
1603+
*/
1604+
public function createForumTopic(array $content): array
1605+
{
1606+
return $this->endpoint('createForumTopic', $content);
1607+
}
1608+
1609+
/**
1610+
* See <a href="https://core.telegram.org/bots/api#editForumTopic">editForumTopic</a> for the input values.
1611+
*
1612+
* @param $content array the request parameters as array
1613+
*
1614+
* @return array the JSON Telegram's reply.
1615+
*/
1616+
public function editForumTopic(array $content): array
1617+
{
1618+
return $this->endpoint('editForumTopic', $content);
1619+
}
1620+
1621+
/**
1622+
* See <a href="https://core.telegram.org/bots/api#closeForumTopic">closeForumTopic</a> for the input values.
1623+
*
1624+
* @param $content array the request parameters as array
1625+
*
1626+
* @return array the JSON Telegram's reply.
1627+
*/
1628+
public function closeForumTopic(array $content): array
1629+
{
1630+
return $this->endpoint('closeForumTopic', $content);
1631+
}
1632+
1633+
/**
1634+
* See <a href="https://core.telegram.org/bots/api#reopenForumTopic">reopenForumTopic</a> for the input values.
1635+
*
1636+
* @param $content array the request parameters as array
1637+
*
1638+
* @return array the JSON Telegram's reply.
1639+
*/
1640+
public function reopenForumTopic(array $content): array
1641+
{
1642+
return $this->endpoint('reopenForumTopic', $content);
1643+
}
1644+
1645+
/**
1646+
* See <a href="https://core.telegram.org/bots/api#deleteForumTopic">deleteForumTopic</a> for the input values.
1647+
*
1648+
* @param $content array the request parameters as array
1649+
*
1650+
* @return array the JSON Telegram's reply.
1651+
*/
1652+
public function deleteForumTopic(array $content): array
1653+
{
1654+
return $this->endpoint('deleteForumTopic', $content);
1655+
}
1656+
1657+
/**
1658+
* See <a href="https://core.telegram.org/bots/api#unpinAllForumTopicMessages">unpinAllForumTopicMessages</a> for the input values.
1659+
*
1660+
* @param $content array the request parameters as array
1661+
*
1662+
* @return array the JSON Telegram's reply.
1663+
*/
1664+
public function unpinAllForumTopicMessages(array $content): array
1665+
{
1666+
return $this->endpoint('unpinAllForumTopicMessages', $content);
1667+
}
1668+
1669+
/**
1670+
* See <a href="https://core.telegram.org/bots/api#getForumTopicIconStickers ">getForumTopicIconStickers </a> for the input values.
1671+
*
1672+
* @param $content array the request parameters as array
1673+
*
1674+
* @return array the JSON Telegram's reply.
1675+
*/
1676+
public function getForumTopicIconStickers (array $content): array
1677+
{
1678+
return $this->endpoint('getForumTopicIconStickers ', $content);
1679+
}
1680+
15971681
/**
15981682
* See <a href="https://core.telegram.org/bots/api#getstickerset">getStickerSet</a> for the input values.
15991683
*

0 commit comments

Comments
 (0)