├── pint.json ├── src ├── Foundation │ ├── Identifiable.php │ └── StorageContract.php ├── Exceptions │ ├── TelegramObjectException.php │ ├── TelegramApiException.php │ └── UnclosedQuotesException.php ├── Objects │ ├── CallbackGame.php │ ├── ForumTopicClosed.php │ ├── VideoChatStarted.php │ ├── ForumTopicReopened.php │ ├── ReactionTypePaid.php │ ├── GeneralForumTopicHidden.php │ ├── GeneralForumTopicUnhidden.php │ ├── BotName.php │ ├── Gifts.php │ ├── MenuButtonDefault.php │ ├── MenuButtonCommands.php │ ├── RevenueWithdrawalStatePending.php │ ├── BotDescription.php │ ├── ChatBackground.php │ ├── RevenueWithdrawalStateFailed.php │ ├── TransactionPartnerOther.php │ ├── PaidMediaVideo.php │ ├── BotCommandScopeAllPrivateChats.php │ ├── PaidMediaPhoto.php │ ├── BotCommandScopeAllGroupChats.php │ ├── StarTransactions.php │ ├── WebAppInfo.php │ ├── TransactionPartnerTelegramAds.php │ ├── VideoChatEnded.php │ ├── ChatBoostAdded.php │ ├── BotShortDescription.php │ ├── UserChatBoosts.php │ ├── BotCommandScopeDefault.php │ ├── Story.php │ ├── BotCommandScopeAllChatAdministrators.php │ ├── CopyTextButton.php │ ├── ReactionTypeCustomEmoji.php │ ├── VideoChatParticipantsInvited.php │ ├── BackgroundFillSolid.php │ ├── ChatMemberLeft.php │ ├── StoryArea.php │ ├── VideoChatScheduled.php │ ├── ChatBoostUpdated.php │ ├── BackgroundTypeChatTheme.php │ ├── GiveawayCreated.php │ ├── StoryAreaTypeUniqueGift.php │ ├── StoryAreaTypeLink.php │ ├── MessageAutoDeleteTimerChanged.php │ ├── SentWebAppMessage.php │ ├── ChatBoostSourcePremium.php │ ├── BusinessLocation.php │ ├── InlineKeyboardMarkup.php │ ├── PaidMediaPurchased.php │ ├── ReactionCount.php │ ├── PaidMediaInfo.php │ ├── Birthdate.php │ ├── UserProfilePhotos.php │ ├── Dice.php │ ├── GameHighScore.php │ ├── PaidMessagePriceChanged.php │ ├── BotCommand.php │ ├── ShippingOption.php │ ├── TransactionPartnerChat.php │ ├── ChatLocation.php │ ├── TransactionPartnerFragment.php │ ├── TransactionPartnerTelegramApi.php │ ├── MessageOriginUser.php │ ├── UsersShared.php │ ├── BackgroundFillFreeformGradient.php │ ├── BotCommandScopeChat.php │ ├── RevenueWithdrawalStateSucceeded.php │ ├── PreparedInlineMessage.php │ ├── BusinessOpeningHours.php │ ├── ChatBoostSourceGiftCode.php │ ├── ChatMemberMember.php │ ├── StarAmount.php │ ├── MessageId.php │ ├── BackgroundTypeFill.php │ ├── WebAppData.php │ ├── MessageOriginHiddenUser.php │ ├── PassportData.php │ ├── InaccessibleMessage.php │ ├── KeyboardButtonPollType.php │ ├── ForumTopicEdited.php │ ├── UniqueGiftModel.php │ ├── BusinessIntro.php │ ├── ChatMemberBanned.php │ ├── InputProfilePhotoStatic.php │ ├── OwnedGifts.php │ ├── UniqueGiftSymbol.php │ ├── UniqueGiftBackdrop.php │ ├── BotCommandScopeChatAdministrators.php │ ├── InputPaidMediaPhoto.php │ ├── ProximityAlertTriggered.php │ ├── ForumTopicCreated.php │ ├── ChecklistTasksAdded.php │ ├── InlineQueryResultGame.php │ ├── PaidMediaPreview.php │ ├── ReactionTypeEmoji.php │ ├── SuggestedPostDeclined.php │ ├── InputStoryContentPhoto.php │ ├── OrderInfo.php │ ├── LabeledPrice.php │ ├── PollOption.php │ ├── ChatMemberOwner.php │ ├── MaybeInaccessibleMessage.php │ ├── ShippingQuery.php │ ├── StoryAreaTypeLocation.php │ ├── BackgroundFillGradient.php │ ├── ChatBoostRemoved.php │ ├── StoryAreaTypeWeather.php │ ├── ForumTopic.php │ ├── BotCommandScopeChatMember.php │ ├── InputContactMessageContent.php │ ├── PassportElementErrorUnspecified.php │ ├── BusinessOpeningHoursInterval.php │ ├── LocationAddress.php │ ├── SuggestedPostPrice.php │ ├── MessageOriginChat.php │ ├── MessageReactionCountUpdated.php │ ├── DirectMessagesTopic.php │ ├── SuggestedPostApprovalFailed.php │ ├── BusinessMessagesDeleted.php │ ├── SuggestedPostApproved.php │ ├── DirectMessagePriceChanged.php │ ├── OwnedGift.php │ ├── StoryAreaTypeSuggestedReaction.php │ ├── SuggestedPostParameters.php │ ├── ChatBoost.php │ ├── InputPaidMedia.php │ ├── TransactionPartnerAffiliateProgram.php │ ├── UniqueGiftBackdropColors.php │ ├── MessageOriginChannel.php │ ├── PollAnswer.php │ ├── PassportElementErrorFile.php │ ├── PassportElementErrorSelfie.php │ ├── StickerSet.php │ ├── InputPollOption.php │ ├── MenuButtonWebApp.php │ ├── InputStoryContent.php │ ├── SuggestedPostRefunded.php │ ├── InputProfilePhoto.php │ ├── PassportElementErrorFiles.php │ ├── SuggestedPostInfo.php │ ├── AcceptedGiftTypes.php │ ├── PassportElementErrorReverseSide.php │ ├── InputProfilePhotoAnimated.php │ ├── ResponseParameters.php │ ├── ShippingAddress.php │ ├── PaidMedia.php │ ├── PassportElementErrorFrontSide.php │ ├── PhotoSize.php │ ├── ChecklistTask.php │ ├── ChecklistTasksDone.php │ ├── EncryptedCredentials.php │ ├── PassportFile.php │ ├── BackgroundTypeWallpaper.php │ ├── ReactionType.php │ ├── GiveawayCompleted.php │ ├── InputTextMessageContent.php │ ├── PassportElementErrorTranslationFile.php │ └── Checklist.php └── Methods │ ├── GetMeMethod.php │ ├── GetAvailableGiftsMethod.php │ ├── GetMyStarBalanceMethod.php │ ├── GetStickerSetMethod.php │ ├── DeleteStickerSetMethod.php │ ├── GetWebhookInfoMethod.php │ ├── GetForumTopicIconStickersMethod.php │ ├── DeleteStickerFromSetMethod.php │ ├── GetMyNameMethod.php │ ├── DeleteWebhookMethod.php │ ├── RemoveUserVerificationMethod.php │ ├── GetMyDescriptionMethod.php │ ├── GetChatMethod.php │ ├── GetChatMemberCountMethod.php │ ├── SetStickerSetTitleMethod.php │ ├── CloseMethod.php │ ├── GetMyShortDescriptionMethod.php │ ├── GetBusinessConnectionMethod.php │ ├── GetChatMenuButtonMethod.php │ ├── GetChatAdministratorsMethod.php │ ├── GetCustomEmojiStickersMethod.php │ ├── RefundStarPaymentMethod.php │ ├── RemoveChatVerificationMethod.php │ ├── LeaveChatMethod.php │ ├── LogOutMethod.php │ ├── SetStickerPositionInSetMethod.php │ ├── GetBusinessAccountStarBalanceMethod.php │ ├── DeleteChatPhotoMethod.php │ ├── DeleteStoryMethod.php │ ├── GetStarTransactionsMethod.php │ ├── SetBusinessAccountBioMethod.php │ ├── CloseGeneralForumTopicMethod.php │ ├── UnhideGeneralForumTopicMethod.php │ ├── GetMyDefaultAdministratorRightsMethod.php │ ├── GetUserChatBoostsMethod.php │ ├── SetMyNameMethod.php │ ├── VerifyUserMethod.php │ ├── SetStickerEmojiListMethod.php │ ├── ConvertGiftToStarsMethod.php │ ├── SetBusinessAccountUsernameMethod.php │ ├── SetStickerKeywordsMethod.php │ ├── ExportChatInviteLinkMethod.php │ ├── HideGeneralForumTopicMethod.php │ ├── TransferBusinessAccountStarsMethod.php │ ├── SetCustomEmojiStickerSetThumbnailMethod.php │ ├── UnpinAllGeneralForumTopicMessagesMethod.php │ ├── ReopenGeneralForumTopicMethod.php │ ├── GetChatMemberMethod.php │ ├── ApproveChatJoinRequestMethod.php │ ├── DeclineChatJoinRequestMethod.php │ ├── SetChatTitleMethod.php │ ├── DeleteChatStickerSetMethod.php │ ├── SetChatMenuButtonMethod.php │ ├── SetChatDescriptionMethod.php │ ├── UnbanChatSenderChatMethod.php │ ├── DeleteMessagesMethod.php │ ├── EditGeneralForumTopicMethod.php │ ├── GetMyCommandsMethod.php │ ├── GetUserProfilePhotosMethod.php │ ├── VerifyChatMethod.php │ ├── SetStickerMaskPositionMethod.php │ ├── SetMyDescriptionMethod.php │ ├── UnpinAllChatMessagesMethod.php │ ├── AnswerWebAppQueryMethod.php │ ├── SetChatPhotoMethod.php │ ├── DeleteForumTopicMethod.php │ ├── CloseForumTopicMethod.php │ ├── ReopenForumTopicMethod.php │ ├── DeclineSuggestedPostMethod.php │ ├── UnpinAllForumTopicMessagesMethod.php │ ├── RevokeChatInviteLinkMethod.php │ ├── SetBusinessAccountNameMethod.php │ ├── SetChatAdministratorCustomTitleMethod.php │ ├── ReadBusinessMessageMethod.php │ ├── BanChatSenderChatMethod.php │ ├── EditChatSubscriptionInviteLinkMethod.php │ └── SetChatStickerSetMethod.php └── LICENSE.md /pint.json: -------------------------------------------------------------------------------- 1 | { 2 | "preset": "psr12" 3 | } -------------------------------------------------------------------------------- /src/Foundation/Identifiable.php: -------------------------------------------------------------------------------- 1 | parameters = isset($result['parameters']) ? ResponseParameters::from($result['parameters']) : null; 15 | 16 | parent::__construct($result['description'], $code, $previous); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Methods/GetAvailableGiftsMethod.php: -------------------------------------------------------------------------------- 1 | ” if the photo was uploaded using multipart/form-data under . More information on Sending Files » 9 | * 10 | * @see https://core.telegram.org/bots/api#inputprofilephotostatic 11 | */ 12 | class InputProfilePhotoStatic extends InputProfilePhoto 13 | { 14 | public function __construct( 15 | public readonly string $type, 16 | public readonly string $photo, 17 | ) { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Objects/OwnedGifts.php: -------------------------------------------------------------------------------- 1 | ” to upload a new one using multipart/form-data under name. More information on Sending Files » 9 | * 10 | * @see https://core.telegram.org/bots/api#inputpaidmediaphoto 11 | */ 12 | class InputPaidMediaPhoto extends InputPaidMedia 13 | { 14 | public function __construct( 15 | public readonly string $type, 16 | public readonly string $media, 17 | ) { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Objects/ProximityAlertTriggered.php: -------------------------------------------------------------------------------- 1 | ” if the photo was uploaded using multipart/form-data under . More information on Sending Files » 9 | * 10 | * @see https://core.telegram.org/bots/api#inputstorycontentphoto 11 | */ 12 | class InputStoryContentPhoto extends InputStoryContent 13 | { 14 | public function __construct( 15 | public readonly string $type, 16 | public readonly string $photo, 17 | ) { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Objects/OrderInfo.php: -------------------------------------------------------------------------------- 1 | InaccessibleMessage::class, 21 | false => Message::class, 22 | }; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Objects/ShippingQuery.php: -------------------------------------------------------------------------------- 1 | OwnedGiftRegular::class, 21 | 'unique' => OwnedGiftUnique::class, 22 | default => throw new \InvalidArgumentException("Unknown OwnedGift: ".$parameters['type']), 23 | }; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Methods/UnpinAllGeneralForumTopicMessagesMethod.php: -------------------------------------------------------------------------------- 1 | InputPaidMediaPhoto::class, 21 | 'video' => InputPaidMediaVideo::class, 22 | default => throw new \InvalidArgumentException("Unknown InputPaidMedia: ".$parameters['type']), 23 | }; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Objects/TransactionPartnerAffiliateProgram.php: -------------------------------------------------------------------------------- 1 | InputStoryContentPhoto::class, 21 | 'video' => InputStoryContentVideo::class, 22 | default => throw new \InvalidArgumentException("Unknown InputStoryContent: ".$parameters['type']), 23 | }; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Objects/SuggestedPostRefunded.php: -------------------------------------------------------------------------------- 1 | InputProfilePhotoStatic::class, 21 | 'animated' => InputProfilePhotoAnimated::class, 22 | default => throw new \InvalidArgumentException("Unknown InputProfilePhoto: ".$parameters['type']), 23 | }; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Objects/PassportElementErrorFiles.php: -------------------------------------------------------------------------------- 1 | ” if the photo was uploaded using multipart/form-data under . More information on Sending Files » 9 | * @property-read ?float $main_frame_timestamp Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0. 10 | * 11 | * @see https://core.telegram.org/bots/api#inputprofilephotoanimated 12 | */ 13 | class InputProfilePhotoAnimated extends InputProfilePhoto 14 | { 15 | public function __construct( 16 | public readonly string $type, 17 | public readonly string $animation, 18 | public readonly ?float $main_frame_timestamp, 19 | ) { 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Methods/GetUserProfilePhotosMethod.php: -------------------------------------------------------------------------------- 1 | PaidMediaPreview::class, 22 | 'photo' => PaidMediaPhoto::class, 23 | 'video' => PaidMediaVideo::class, 24 | default => throw new \InvalidArgumentException("Unknown PaidMedia: ".$parameters['type']), 25 | }; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Objects/PassportElementErrorFrontSide.php: -------------------------------------------------------------------------------- 1 | ReactionTypeEmoji::class, 22 | 'custom_emoji' => ReactionTypeCustomEmoji::class, 23 | 'paid' => ReactionTypePaid::class, 24 | default => throw new \InvalidArgumentException("Unknown ReactionType: ".$parameters['type']), 25 | }; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Objects/GiveawayCompleted.php: -------------------------------------------------------------------------------- 1 |