Skip to content

Commit d864798

Browse files
committed
Update to Telegram Bot API 6.4
1 parent 40feed1 commit d864798

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-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-November%205,%202022-36ade1.svg)](https://core.telegram.org/bots/api)
2+
[![API](https://img.shields.io/badge/Telegram%20Bot%20API-December%2030,%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 November 5, 2022 Telegram Bot API update.
11+
Compliant with the December 30, 2022 Telegram Bot API update.
1212

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

Telegram.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,66 @@ public function unpinAllForumTopicMessages(array $content): array
16661666
return $this->endpoint('unpinAllForumTopicMessages', $content);
16671667
}
16681668

1669+
/**
1670+
* See <a href="https://core.telegram.org/bots/api#editGeneralForumTopic">editGeneralForumTopic</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 editGeneralForumTopic(array $content): array
1677+
{
1678+
return $this->endpoint('editGeneralForumTopic', $content);
1679+
}
1680+
1681+
/**
1682+
* See <a href="https://core.telegram.org/bots/api#closeGeneralForumTopic">closeGeneralForumTopic</a> for the input values.
1683+
*
1684+
* @param $content array the request parameters as array
1685+
*
1686+
* @return array the JSON Telegram's reply.
1687+
*/
1688+
public function closeGeneralForumTopic(array $content): array
1689+
{
1690+
return $this->endpoint('closeGeneralForumTopic', $content);
1691+
}
1692+
1693+
/**
1694+
* See <a href="https://core.telegram.org/bots/api#reopenGeneralForumTopic">reopenGeneralForumTopic</a> for the input values.
1695+
*
1696+
* @param $content array the request parameters as array
1697+
*
1698+
* @return array the JSON Telegram's reply.
1699+
*/
1700+
public function reopenGeneralForumTopic(array $content): array
1701+
{
1702+
return $this->endpoint('reopenGeneralForumTopic', $content);
1703+
}
1704+
1705+
/**
1706+
* See <a href="https://core.telegram.org/bots/api#hideGeneralForumTopic">hideGeneralForumTopic</a> for the input values.
1707+
*
1708+
* @param $content array the request parameters as array
1709+
*
1710+
* @return array the JSON Telegram's reply.
1711+
*/
1712+
public function hideGeneralForumTopic(array $content): array
1713+
{
1714+
return $this->endpoint('hideGeneralForumTopic', $content);
1715+
}
1716+
1717+
/**
1718+
* See <a href="https://core.telegram.org/bots/api#unhideGeneralForumTopic">unhideGeneralForumTopic</a> for the input values.
1719+
*
1720+
* @param $content array the request parameters as array
1721+
*
1722+
* @return array the JSON Telegram's reply.
1723+
*/
1724+
public function unhideGeneralForumTopic(array $content): array
1725+
{
1726+
return $this->endpoint('unhideGeneralForumTopic', $content);
1727+
}
1728+
16691729
/**
16701730
* See <a href="https://core.telegram.org/bots/api#getForumTopicIconStickers ">getForumTopicIconStickers </a> for the input values.
16711731
*

0 commit comments

Comments
 (0)