|
61 | 61 | use Phptg\BotApi\Method\GetMyStarBalance; |
62 | 62 | use Phptg\BotApi\Method\GetUserChatBoosts; |
63 | 63 | use Phptg\BotApi\Method\GetUserGifts; |
| 64 | +use Phptg\BotApi\Method\GetUserProfileAudios; |
64 | 65 | use Phptg\BotApi\Method\GetUserProfilePhotos; |
65 | 66 | use Phptg\BotApi\Method\GiftPremiumSubscription; |
66 | 67 | use Phptg\BotApi\Method\HideGeneralForumTopic; |
|
82 | 83 | use Phptg\BotApi\Method\PromoteChatMember; |
83 | 84 | use Phptg\BotApi\Method\RepostStory; |
84 | 85 | use Phptg\BotApi\Method\RemoveBusinessAccountProfilePhoto; |
| 86 | +use Phptg\BotApi\Method\RemoveMyProfilePhoto; |
85 | 87 | use Phptg\BotApi\Method\RemoveChatVerification; |
86 | 88 | use Phptg\BotApi\Method\RemoveUserVerification; |
87 | 89 | use Phptg\BotApi\Method\ReopenForumTopic; |
|
123 | 125 | use Phptg\BotApi\Method\SetMyDefaultAdministratorRights; |
124 | 126 | use Phptg\BotApi\Method\SetMyDescription; |
125 | 127 | use Phptg\BotApi\Method\SetMyName; |
| 128 | +use Phptg\BotApi\Method\SetMyProfilePhoto; |
126 | 129 | use Phptg\BotApi\Method\SetMyShortDescription; |
127 | 130 | use Phptg\BotApi\Method\SetUserEmojiStatus; |
128 | 131 | use Phptg\BotApi\Method\Sticker\AddStickerToSet; |
|
236 | 239 | use Phptg\BotApi\Type\Update\WebhookInfo; |
237 | 240 | use Phptg\BotApi\Type\User; |
238 | 241 | use Phptg\BotApi\Type\UserChatBoosts; |
| 242 | +use Phptg\BotApi\Type\UserProfileAudios; |
239 | 243 | use Phptg\BotApi\Type\UserProfilePhotos; |
240 | 244 |
|
241 | 245 | use function extension_loaded; |
@@ -1459,6 +1463,19 @@ public function getUserGifts( |
1459 | 1463 | ); |
1460 | 1464 | } |
1461 | 1465 |
|
| 1466 | + /** |
| 1467 | + * @see https://core.telegram.org/bots/api#getuserprofileaudios |
| 1468 | + */ |
| 1469 | + public function getUserProfileAudios( |
| 1470 | + int $userId, |
| 1471 | + ?int $offset = null, |
| 1472 | + ?int $limit = null, |
| 1473 | + ): FailResult|UserProfileAudios { |
| 1474 | + return $this->call( |
| 1475 | + new GetUserProfileAudios($userId, $offset, $limit), |
| 1476 | + ); |
| 1477 | + } |
| 1478 | + |
1462 | 1479 | /** |
1463 | 1480 | * @see https://core.telegram.org/bots/api#getuserprofilephotos |
1464 | 1481 | */ |
@@ -1683,6 +1700,14 @@ public function removeBusinessAccountProfilePhoto( |
1683 | 1700 | ); |
1684 | 1701 | } |
1685 | 1702 |
|
| 1703 | + /** |
| 1704 | + * @see https://core.telegram.org/bots/api#removemyprofilephoto |
| 1705 | + */ |
| 1706 | + public function removeMyProfilePhoto(): FailResult|true |
| 1707 | + { |
| 1708 | + return $this->call(new RemoveMyProfilePhoto()); |
| 1709 | + } |
| 1710 | + |
1686 | 1711 | /** |
1687 | 1712 | * @see https://core.telegram.org/bots/api#removechatverification |
1688 | 1713 | */ |
@@ -2956,6 +2981,14 @@ public function setMyName(?string $name = null, ?string $languageCode = null): F |
2956 | 2981 | return $this->call(new SetMyName($name, $languageCode)); |
2957 | 2982 | } |
2958 | 2983 |
|
| 2984 | + /** |
| 2985 | + * @see https://core.telegram.org/bots/api#setmyprofilephoto |
| 2986 | + */ |
| 2987 | + public function setMyProfilePhoto(InputProfilePhoto $photo): FailResult|true |
| 2988 | + { |
| 2989 | + return $this->call(new SetMyProfilePhoto($photo)); |
| 2990 | + } |
| 2991 | + |
2959 | 2992 | /** |
2960 | 2993 | * @see https://core.telegram.org/bots/api#setmyshortdescription |
2961 | 2994 | */ |
|
0 commit comments