|
66 | 66 | use Telepath\Telegram\Update; |
67 | 67 | use Telepath\Telegram\User; |
68 | 68 | use Telepath\Telegram\UserChatBoosts; |
| 69 | +use Telepath\Telegram\UserProfileAudios; |
69 | 70 | use Telepath\Telegram\UserProfilePhotos; |
70 | 71 | use Telepath\Telegram\WebhookInfo; |
71 | 72 | use Telepath\Types\Enums\ChatActionType; |
@@ -953,7 +954,7 @@ public function sendPoll( |
953 | 954 | * @param bool $protect_content Protects the contents of the sent message from forwarding and saving |
954 | 955 | * @param string $message_effect_id Unique identifier of the message effect to be added to the message |
955 | 956 | * @param ReplyParameters $reply_parameters A JSON-serialized object for description of the message to reply to |
956 | | - * @param InlineKeyboardMarkup $reply_markup A JSON-serialized object for an inline keyboard |
| 957 | + * @param InlineKeyboardMarkup $reply_markup A JSON-serialized object for an <a href="https://core.telegram.org/bots/features#inline-keyboards">inline keyboard</a> |
957 | 958 | * |
958 | 959 | * @throws TelegramException |
959 | 960 | */ |
@@ -1080,6 +1081,20 @@ public function getUserProfilePhotos(int $user_id, ?int $offset = null, ?int $li |
1080 | 1081 | return $this->raw('getUserProfilePhotos', func_get_args()); |
1081 | 1082 | } |
1082 | 1083 |
|
| 1084 | + /** |
| 1085 | + * Use this method to get a list of profile audios for a user. Returns a <a href="https://core.telegram.org/bots/api#userprofileaudios">UserProfileAudios</a> object. |
| 1086 | + * |
| 1087 | + * @param int $user_id Unique identifier of the target user |
| 1088 | + * @param int $offset Sequential number of the first audio to be returned. By default, all audios are returned. |
| 1089 | + * @param int $limit Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100. |
| 1090 | + * |
| 1091 | + * @throws TelegramException |
| 1092 | + */ |
| 1093 | + public function getUserProfileAudios(int $user_id, ?int $offset = null, ?int $limit = null): UserProfileAudios |
| 1094 | + { |
| 1095 | + return $this->raw('getUserProfileAudios', func_get_args()); |
| 1096 | + } |
| 1097 | + |
1083 | 1098 | /** |
1084 | 1099 | * Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method <a href="https://core.telegram.org/bots/webapps#initializing-mini-apps">requestEmojiStatusAccess</a>. Returns <em>True</em> on success. |
1085 | 1100 | * |
@@ -1597,7 +1612,7 @@ public function getForumTopicIconStickers(): array |
1597 | 1612 | } |
1598 | 1613 |
|
1599 | 1614 | /** |
1600 | | - * Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. Returns information about the created topic as a <a href="https://core.telegram.org/bots/api#forumtopic">ForumTopic</a> object. |
| 1615 | + * Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator right. Returns information about the created topic as a <a href="https://core.telegram.org/bots/api#forumtopic">ForumTopic</a> object. |
1601 | 1616 | * |
1602 | 1617 | * @param int|string $chat_id Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) |
1603 | 1618 | * @param string $name Topic name, 1-128 characters |
@@ -1924,6 +1939,18 @@ public function getMyShortDescription(?string $language_code = null): BotShortDe |
1924 | 1939 | return $this->raw('getMyShortDescription', func_get_args()); |
1925 | 1940 | } |
1926 | 1941 |
|
| 1942 | + /** |
| 1943 | + * Changes the profile photo of the bot. Returns <em>True</em> on success. |
| 1944 | + * |
| 1945 | + * @param InputProfilePhoto $photo The new profile photo to set |
| 1946 | + * |
| 1947 | + * @throws TelegramException |
| 1948 | + */ |
| 1949 | + public function setMyProfilePhoto(InputProfilePhoto $photo): bool |
| 1950 | + { |
| 1951 | + return $this->raw('setMyProfilePhoto', func_get_args()); |
| 1952 | + } |
| 1953 | + |
1927 | 1954 | /** |
1928 | 1955 | * Use this method to change the bot's menu button in a private chat, or the default menu button. Returns <em>True</em> on success. |
1929 | 1956 | * |
@@ -2594,7 +2621,7 @@ public function stopMessageLiveLocation( |
2594 | 2621 | * @param int $chat_id Unique identifier for the target chat |
2595 | 2622 | * @param int $message_id Unique identifier for the target message |
2596 | 2623 | * @param InputChecklist $checklist A JSON-serialized object for the new checklist |
2597 | | - * @param InlineKeyboardMarkup $reply_markup A JSON-serialized object for the new inline keyboard for the message |
| 2624 | + * @param InlineKeyboardMarkup $reply_markup A JSON-serialized object for the new <a href="https://core.telegram.org/bots/features#inline-keyboards">inline keyboard</a> for the message |
2598 | 2625 | * |
2599 | 2626 | * @throws TelegramException |
2600 | 2627 | */ |
|
0 commit comments