Skip to content

Commit 4e95230

Browse files
committed
Update to Telegram Bot API 6.7
1 parent 107fde8 commit 4e95230

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-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-December%2030,%202022-36ade1.svg)](https://core.telegram.org/bots/api)
2+
[![API](https://img.shields.io/badge/Telegram%20Bot%20API-April%2021,%202023-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 March 9, 2023 Telegram Bot API update.
11+
Compliant with the April 21, 2023 Telegram Bot API update.
1212

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

Telegram.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,30 @@ public function setMyDescription(array $content): array
676676
return $this->endpoint('setMyDescription', $content);
677677
}
678678

679+
/**
680+
* See <a href="https://core.telegram.org/bots/api#getMyName">getMyName</a> for the input values.
681+
*
682+
* @param $content array the request parameters as array
683+
*
684+
* @return array the JSON Telegram's reply.
685+
*/
686+
public function getMyName(array $content): array
687+
{
688+
return $this->endpoint('getMyName', $content);
689+
}
690+
691+
/**
692+
* See <a href="https://core.telegram.org/bots/api#setMyName">setMyName</a> for the input values.
693+
*
694+
* @param $content array the request parameters as array
695+
*
696+
* @return array the JSON Telegram's reply.
697+
*/
698+
public function setMyName(array $content): array
699+
{
700+
return $this->endpoint('setMyName', $content);
701+
}
702+
679703
/**
680704
* See <a href="https://core.telegram.org/bots/api#deletemycommands">deleteMyCommands</a> for the input values.
681705
*

0 commit comments

Comments
 (0)