File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed
Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 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
88[ ![ StyleCI] ( https://styleci.io/repos/635079074/shield?branch=master )] ( https://styleci.io/repos/635079074 )
99
1010A 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
1313Requirements
1414---------
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments