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 1
1
# 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 )
3
3
![ PHP] ( https://img.shields.io/badge/php-%3E%3D7.4-8892bf.svg )
4
4
![ CURL] ( https://img.shields.io/badge/cURL-required-green.svg )
5
5
8
8
[ ![ StyleCI] ( https://styleci.io/repos/635079074/shield?branch=master )] ( https://styleci.io/repos/635079074 )
9
9
10
10
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.
12
12
13
13
Requirements
14
14
---------
Original file line number Diff line number Diff line change @@ -676,6 +676,30 @@ public function setMyDescription(array $content): array
676
676
return $ this ->endpoint ('setMyDescription ' , $ content );
677
677
}
678
678
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
+
679
703
/**
680
704
* See <a href="https://core.telegram.org/bots/api#deletemycommands">deleteMyCommands</a> for the input values.
681
705
*
You can’t perform that action at this time.
0 commit comments