From 999eee65a69c42796866262379983ea984c141aa Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 15 Aug 2024 18:14:34 +0200 Subject: [PATCH] Bump --- docs/API_docs/constructors/botInfo.md | 3 +- docs/API_docs/constructors/channel.md | 4 +- ...inLogEventActionToggleSignatureProfiles.md | 27 ++++++++++++ docs/API_docs/constructors/channelFull.md | 3 +- .../constructors/channelParticipant.md | 3 +- .../constructors/channelParticipantSelf.md | 3 +- docs/API_docs/constructors/chatInvite.md | 5 ++- .../constructors/chatInviteExported.md | 4 +- docs/API_docs/constructors/index.md | 43 ++++++++++++++----- .../constructors/inputFileStoryDocument.md | 27 ++++++++++++ .../inputInvoiceChatInviteSubscription.md | 27 ++++++++++++ .../API_docs/constructors/messageReactions.md | 3 +- docs/API_docs/constructors/messageReactor.md | 31 +++++++++++++ .../constructors/payments.starsStatus.md | 7 ++- docs/API_docs/constructors/reactionPaid.md | 22 ++++++++++ .../API_docs/constructors/sponsoredMessage.md | 3 +- .../constructors/starsSubscription.md | 34 +++++++++++++++ .../constructors/starsSubscriptionPricing.md | 28 ++++++++++++ .../API_docs/constructors/starsTransaction.md | 4 +- docs/API_docs/index.md | 2 +- docs/API_docs/methods/api_index.md | 30 ++++++++++--- .../methods/channels.toggleSignatures.md | 5 ++- docs/API_docs/methods/index.md | 10 +++++ .../methods/messages.exportChatInvite.md | 3 +- .../messages.getChatInviteImporters.md | 3 +- .../methods/messages.sendPaidReaction.md | 43 +++++++++++++++++++ .../messages.setChatAvailableReactions.md | 3 +- .../messages.togglePaidReactionPrivacy.md | 42 ++++++++++++++++++ .../payments.changeStarsSubscription.md | 42 ++++++++++++++++++ .../payments.fulfillStarsSubscription.md | 41 ++++++++++++++++++ .../methods/payments.getStarsSubscriptions.md | 42 ++++++++++++++++++ .../methods/payments.getStarsTransactions.md | 3 +- .../types/ChannelAdminLogEventAction.md | 2 + docs/API_docs/types/InputFile.md | 2 + docs/API_docs/types/InputInvoice.md | 2 + docs/API_docs/types/MessageReactor.md | 21 +++++++++ docs/API_docs/types/Reaction.md | 2 + docs/API_docs/types/StarsSubscription.md | 21 +++++++++ .../types/StarsSubscriptionPricing.md | 21 +++++++++ docs/API_docs/types/Updates.md | 2 + docs/API_docs/types/index.md | 6 +++ docs/API_docs/types/payments.StarsStatus.md | 2 + docs/docs/USING_METHODS.md | 2 +- docs/index.md | 5 +++ 44 files changed, 602 insertions(+), 36 deletions(-) create mode 100644 docs/API_docs/constructors/channelAdminLogEventActionToggleSignatureProfiles.md create mode 100644 docs/API_docs/constructors/inputFileStoryDocument.md create mode 100644 docs/API_docs/constructors/inputInvoiceChatInviteSubscription.md create mode 100644 docs/API_docs/constructors/messageReactor.md create mode 100644 docs/API_docs/constructors/reactionPaid.md create mode 100644 docs/API_docs/constructors/starsSubscription.md create mode 100644 docs/API_docs/constructors/starsSubscriptionPricing.md create mode 100644 docs/API_docs/methods/messages.sendPaidReaction.md create mode 100644 docs/API_docs/methods/messages.togglePaidReactionPrivacy.md create mode 100644 docs/API_docs/methods/payments.changeStarsSubscription.md create mode 100644 docs/API_docs/methods/payments.fulfillStarsSubscription.md create mode 100644 docs/API_docs/methods/payments.getStarsSubscriptions.md create mode 100644 docs/API_docs/types/MessageReactor.md create mode 100644 docs/API_docs/types/StarsSubscription.md create mode 100644 docs/API_docs/types/StarsSubscriptionPricing.md diff --git a/docs/API_docs/constructors/botInfo.md b/docs/API_docs/constructors/botInfo.md index 7cb680b3cf..1f1bcef3bc 100644 --- a/docs/API_docs/constructors/botInfo.md +++ b/docs/API_docs/constructors/botInfo.md @@ -22,6 +22,7 @@ Info about bots (available bot commands, etc) |description\_document|[Document](/API_docs/types/Document.html) | Optional|Description animation in MPEG4 format| |commands|Array of [BotCommand](/API_docs/types/BotCommand.html) | Optional|Bot commands that can be used in the chat| |menu\_button|[BotMenuButton](/API_docs/types/BotMenuButton.html) | Optional|Indicates the action to execute when pressing the in-UI menu button for bots| +|privacy\_policy\_url|[string](/API_docs/types/string.html) | Optional| @@ -31,5 +32,5 @@ Info about bots (available bot commands, etc) ### Example: ``` -$botInfo = ['_' => 'botInfo', 'has_preview_medias' => Bool, 'user_id' => long, 'description' => 'string', 'description_photo' => Photo, 'description_document' => Document, 'commands' => [BotCommand, BotCommand], 'menu_button' => BotMenuButton]; +$botInfo = ['_' => 'botInfo', 'has_preview_medias' => Bool, 'user_id' => long, 'description' => 'string', 'description_photo' => Photo, 'description_document' => Document, 'commands' => [BotCommand, BotCommand], 'menu_button' => BotMenuButton, 'privacy_policy_url' => 'string']; ``` diff --git a/docs/API_docs/constructors/channel.md b/docs/API_docs/constructors/channel.md index 54f4a9f02b..0a128d15f0 100644 --- a/docs/API_docs/constructors/channel.md +++ b/docs/API_docs/constructors/channel.md @@ -38,6 +38,7 @@ Channel/supergroup info |stories\_hidden|[Bool](/API_docs/types/Bool.html) | Optional| |stories\_hidden\_min|[Bool](/API_docs/types/Bool.html) | Optional| |stories\_unavailable|[Bool](/API_docs/types/Bool.html) | Optional| +|signature\_profiles|[Bool](/API_docs/types/Bool.html) | Optional| |id|[long](/API_docs/types/long.html) | Yes|ID of the channel| |access\_hash|[long](/API_docs/types/long.html) | Optional|Access hash| |title|[string](/API_docs/types/string.html) | Yes|Title| @@ -55,6 +56,7 @@ Channel/supergroup info |profile\_color|[PeerColor](/API_docs/types/PeerColor.html) | Optional| |emoji\_status|[EmojiStatus](/API_docs/types/EmojiStatus.html) | Optional| |level|[int](/API_docs/types/int.html) | Optional| +|subscription\_until\_date|[int](/API_docs/types/int.html) | Optional| @@ -64,5 +66,5 @@ Channel/supergroup info ### Example: ``` -$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'signatures' => Bool, 'min' => Bool, 'scam' => Bool, 'has_link' => Bool, 'has_geo' => Bool, 'slowmode_enabled' => Bool, 'call_active' => Bool, 'call_not_empty' => Bool, 'fake' => Bool, 'gigagroup' => Bool, 'noforwards' => Bool, 'join_to_send' => Bool, 'join_request' => Bool, 'forum' => Bool, 'stories_hidden' => Bool, 'stories_hidden_min' => Bool, 'stories_unavailable' => Bool, 'id' => long, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'restriction_reason' => [RestrictionReason, RestrictionReason], 'admin_rights' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int, 'usernames' => [Username, Username], 'stories_max_id' => int, 'color' => PeerColor, 'profile_color' => PeerColor, 'emoji_status' => EmojiStatus, 'level' => int]; +$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'signatures' => Bool, 'min' => Bool, 'scam' => Bool, 'has_link' => Bool, 'has_geo' => Bool, 'slowmode_enabled' => Bool, 'call_active' => Bool, 'call_not_empty' => Bool, 'fake' => Bool, 'gigagroup' => Bool, 'noforwards' => Bool, 'join_to_send' => Bool, 'join_request' => Bool, 'forum' => Bool, 'stories_hidden' => Bool, 'stories_hidden_min' => Bool, 'stories_unavailable' => Bool, 'signature_profiles' => Bool, 'id' => long, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'restriction_reason' => [RestrictionReason, RestrictionReason], 'admin_rights' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int, 'usernames' => [Username, Username], 'stories_max_id' => int, 'color' => PeerColor, 'profile_color' => PeerColor, 'emoji_status' => EmojiStatus, 'level' => int, 'subscription_until_date' => int]; ``` diff --git a/docs/API_docs/constructors/channelAdminLogEventActionToggleSignatureProfiles.md b/docs/API_docs/constructors/channelAdminLogEventActionToggleSignatureProfiles.md new file mode 100644 index 0000000000..bf63e8ea1b --- /dev/null +++ b/docs/API_docs/constructors/channelAdminLogEventActionToggleSignatureProfiles.md @@ -0,0 +1,27 @@ +--- +title: "channelAdminLogEventActionToggleSignatureProfiles" +description: "channelAdminLogEventActionToggleSignatureProfiles attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionToggleSignatureProfiles +[Back to constructors index](/API_docs/constructors/index.html) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|new\_value|[Bool](/API_docs/types/Bool.html) | Yes| + + + +### Type: [ChannelAdminLogEventAction](/API_docs/types/ChannelAdminLogEventAction.html) + + +### Example: + +``` +$channelAdminLogEventActionToggleSignatureProfiles = ['_' => 'channelAdminLogEventActionToggleSignatureProfiles', 'new_value' => Bool]; +``` diff --git a/docs/API_docs/constructors/channelFull.md b/docs/API_docs/constructors/channelFull.md index c3ebc06f33..84d7d04246 100644 --- a/docs/API_docs/constructors/channelFull.md +++ b/docs/API_docs/constructors/channelFull.md @@ -33,6 +33,7 @@ Full info about a [channel](https://core.telegram.org/api/channel#channels), [su |can\_view\_revenue|[Bool](/API_docs/types/Bool.html) | Optional| |paid\_media\_allowed|[Bool](/API_docs/types/Bool.html) | Optional| |can\_view\_stars\_revenue|[Bool](/API_docs/types/Bool.html) | Optional| +|paid\_reactions\_available|[Bool](/API_docs/types/Bool.html) | Optional| |id|[long](/API_docs/types/long.html) | Yes|ID of the channel| |about|[string](/API_docs/types/string.html) | Yes|Info about the channel| |participants\_count|[int](/API_docs/types/int.html) | Optional|Number of participants of the channel| @@ -83,5 +84,5 @@ Full info about a [channel](https://core.telegram.org/api/channel#channels), [su ### Example: ``` -$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_set_location' => Bool, 'has_scheduled' => Bool, 'can_view_stats' => Bool, 'blocked' => Bool, 'can_delete_channel' => Bool, 'antispam' => Bool, 'participants_hidden' => Bool, 'translations_disabled' => Bool, 'stories_pinned_available' => Bool, 'view_forum_as_messages' => Bool, 'restricted_sponsored' => Bool, 'can_view_revenue' => Bool, 'paid_media_allowed' => Bool, 'can_view_stars_revenue' => Bool, 'id' => long, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'online_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'migrated_from_chat_id' => long, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int, 'folder_id' => int, 'linked_chat_id' => long, 'location' => ChannelLocation, 'slowmode_seconds' => int, 'slowmode_next_send_date' => int, 'stats_dc' => int, 'pts' => int, 'call' => InputGroupCall, 'ttl_period' => int, 'pending_suggestions' => ['string', 'string'], 'groupcall_default_join_as' => Peer, 'theme_emoticon' => 'string', 'requests_pending' => int, 'recent_requesters' => [long, long], 'default_send_as' => Peer, 'available_reactions' => ChatReactions, 'reactions_limit' => int, 'stories' => PeerStories, 'wallpaper' => WallPaper, 'boosts_applied' => int, 'boosts_unrestrict' => int, 'emojiset' => StickerSet]; +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_set_location' => Bool, 'has_scheduled' => Bool, 'can_view_stats' => Bool, 'blocked' => Bool, 'can_delete_channel' => Bool, 'antispam' => Bool, 'participants_hidden' => Bool, 'translations_disabled' => Bool, 'stories_pinned_available' => Bool, 'view_forum_as_messages' => Bool, 'restricted_sponsored' => Bool, 'can_view_revenue' => Bool, 'paid_media_allowed' => Bool, 'can_view_stars_revenue' => Bool, 'paid_reactions_available' => Bool, 'id' => long, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'online_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'migrated_from_chat_id' => long, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int, 'folder_id' => int, 'linked_chat_id' => long, 'location' => ChannelLocation, 'slowmode_seconds' => int, 'slowmode_next_send_date' => int, 'stats_dc' => int, 'pts' => int, 'call' => InputGroupCall, 'ttl_period' => int, 'pending_suggestions' => ['string', 'string'], 'groupcall_default_join_as' => Peer, 'theme_emoticon' => 'string', 'requests_pending' => int, 'recent_requesters' => [long, long], 'default_send_as' => Peer, 'available_reactions' => ChatReactions, 'reactions_limit' => int, 'stories' => PeerStories, 'wallpaper' => WallPaper, 'boosts_applied' => int, 'boosts_unrestrict' => int, 'emojiset' => StickerSet]; ``` diff --git a/docs/API_docs/constructors/channelParticipant.md b/docs/API_docs/constructors/channelParticipant.md index cc67f4a805..6824da1a51 100644 --- a/docs/API_docs/constructors/channelParticipant.md +++ b/docs/API_docs/constructors/channelParticipant.md @@ -17,6 +17,7 @@ Channel/supergroup participant |----------|---------------|----------|-------------| |user\_id|[long](/API_docs/types/long.html) | Yes|Participant user ID| |date|[int](/API_docs/types/int.html) | Yes|Date joined| +|subscription\_until\_date|[int](/API_docs/types/int.html) | Optional| @@ -26,5 +27,5 @@ Channel/supergroup participant ### Example: ``` -$channelParticipant = ['_' => 'channelParticipant', 'user_id' => long, 'date' => int]; +$channelParticipant = ['_' => 'channelParticipant', 'user_id' => long, 'date' => int, 'subscription_until_date' => int]; ``` diff --git a/docs/API_docs/constructors/channelParticipantSelf.md b/docs/API_docs/constructors/channelParticipantSelf.md index 440ce5dac2..2f54c59913 100644 --- a/docs/API_docs/constructors/channelParticipantSelf.md +++ b/docs/API_docs/constructors/channelParticipantSelf.md @@ -19,6 +19,7 @@ Myself |user\_id|[long](/API_docs/types/long.html) | Yes|User ID| |inviter\_id|[long](/API_docs/types/long.html) | Yes|User that invited me to the channel/supergroup| |date|[int](/API_docs/types/int.html) | Yes|When did I join the channel/supergroup| +|subscription\_until\_date|[int](/API_docs/types/int.html) | Optional| @@ -28,5 +29,5 @@ Myself ### Example: ``` -$channelParticipantSelf = ['_' => 'channelParticipantSelf', 'via_request' => Bool, 'user_id' => long, 'inviter_id' => long, 'date' => int]; +$channelParticipantSelf = ['_' => 'channelParticipantSelf', 'via_request' => Bool, 'user_id' => long, 'inviter_id' => long, 'date' => int, 'subscription_until_date' => int]; ``` diff --git a/docs/API_docs/constructors/chatInvite.md b/docs/API_docs/constructors/chatInvite.md index 9772d58e19..69b2616673 100644 --- a/docs/API_docs/constructors/chatInvite.md +++ b/docs/API_docs/constructors/chatInvite.md @@ -23,12 +23,15 @@ Chat invite info |verified|[Bool](/API_docs/types/Bool.html) | Optional|Is this chat or channel verified by Telegram?| |scam|[Bool](/API_docs/types/Bool.html) | Optional|This chat is probably a scam| |fake|[Bool](/API_docs/types/Bool.html) | Optional|If set, this chat was reported by many users as a fake or scam: be careful when interacting with it.| +|can\_refulfill\_subscription|[Bool](/API_docs/types/Bool.html) | Optional| |title|[string](/API_docs/types/string.html) | Yes|Chat/supergroup/channel title| |about|[string](/API_docs/types/string.html) | Optional|Description of the group of channel| |photo|[Photo](/API_docs/types/Photo.html) | Optional|Chat/supergroup/channel photo| |participants\_count|[int](/API_docs/types/int.html) | Yes|Participant count| |participants|Array of [User](/API_docs/types/User.html) | Optional|A few of the participants that are in the group| |color|[int](/API_docs/types/int.html) | Yes|[Profile color palette ID](https://core.telegram.org/api/colors)| +|subscription\_pricing|[StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html) | Optional| +|subscription\_form\_id|[long](/API_docs/types/long.html) | Optional| @@ -38,5 +41,5 @@ Chat invite info ### Example: ``` -$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'request_needed' => Bool, 'verified' => Bool, 'scam' => Bool, 'fake' => Bool, 'title' => 'string', 'about' => 'string', 'photo' => Photo, 'participants_count' => int, 'participants' => [User, User], 'color' => int]; +$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'request_needed' => Bool, 'verified' => Bool, 'scam' => Bool, 'fake' => Bool, 'can_refulfill_subscription' => Bool, 'title' => 'string', 'about' => 'string', 'photo' => Photo, 'participants_count' => int, 'participants' => [User, User], 'color' => int, 'subscription_pricing' => StarsSubscriptionPricing, 'subscription_form_id' => long]; ``` diff --git a/docs/API_docs/constructors/chatInviteExported.md b/docs/API_docs/constructors/chatInviteExported.md index 89e83d2b9e..d9c43b1f5b 100644 --- a/docs/API_docs/constructors/chatInviteExported.md +++ b/docs/API_docs/constructors/chatInviteExported.md @@ -26,7 +26,9 @@ Exported chat invite |usage\_limit|[int](/API_docs/types/int.html) | Optional|Maximum number of users that can join using this link| |usage|[int](/API_docs/types/int.html) | Optional|How many users joined using this link| |requested|[int](/API_docs/types/int.html) | Optional|Number of users that have already used this link to join| +|subscription\_expired|[int](/API_docs/types/int.html) | Optional| |title|[string](/API_docs/types/string.html) | Optional|Custom description for the invite link, visible only to admins| +|subscription\_pricing|[StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html) | Optional| @@ -36,5 +38,5 @@ Exported chat invite ### Example: ``` -$chatInviteExported = ['_' => 'chatInviteExported', 'revoked' => Bool, 'permanent' => Bool, 'request_needed' => Bool, 'link' => 'string', 'admin_id' => long, 'date' => int, 'start_date' => int, 'expire_date' => int, 'usage_limit' => int, 'usage' => int, 'requested' => int, 'title' => 'string']; +$chatInviteExported = ['_' => 'chatInviteExported', 'revoked' => Bool, 'permanent' => Bool, 'request_needed' => Bool, 'link' => 'string', 'admin_id' => long, 'date' => int, 'start_date' => int, 'expire_date' => int, 'usage_limit' => int, 'usage' => int, 'requested' => int, 'subscription_expired' => int, 'title' => 'string', 'subscription_pricing' => StarsSubscriptionPricing]; ``` diff --git a/docs/API_docs/constructors/index.md b/docs/API_docs/constructors/index.md index ceaf2d9990..c3bf587a32 100644 --- a/docs/API_docs/constructors/index.md +++ b/docs/API_docs/constructors/index.md @@ -296,7 +296,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$botCommandScopeUsers](/API_docs/constructors/botCommandScopeUsers.html) = \[\]; *** -

[$botInfo](/API_docs/constructors/botInfo.html) = \['has_preview_medias' => [Bool](/API_docs/types/Bool.html), 'user_id' => [long](/API_docs/types/long.html), 'description' => [string](/API_docs/types/string.html), 'description_photo' => [Photo](/API_docs/types/Photo.html), 'description_document' => [Document](/API_docs/types/Document.html), 'commands' => \[[BotCommand](/API_docs/types/BotCommand.html)\], 'menu_button' => [BotMenuButton](/API_docs/types/BotMenuButton.html), \]; +

[$botInfo](/API_docs/constructors/botInfo.html) = \['has_preview_medias' => [Bool](/API_docs/types/Bool.html), 'user_id' => [long](/API_docs/types/long.html), 'description' => [string](/API_docs/types/string.html), 'description_photo' => [Photo](/API_docs/types/Photo.html), 'description_document' => [Document](/API_docs/types/Document.html), 'commands' => \[[BotCommand](/API_docs/types/BotCommand.html)\], 'menu_button' => [BotMenuButton](/API_docs/types/BotMenuButton.html), 'privacy_policy_url' => [string](/API_docs/types/string.html), \]; ***

[$botInlineMediaResult](/API_docs/constructors/botInlineMediaResult.html) = \['id' => [string](/API_docs/types/string.html), 'type' => [string](/API_docs/types/string.html), 'photo' => [Photo](/API_docs/types/Photo.html), 'document' => [Document](/API_docs/types/Document.html), 'title' => [string](/API_docs/types/string.html), 'description' => [string](/API_docs/types/string.html), 'send_message' => [BotInlineMessage](/API_docs/types/BotInlineMessage.html), \]; @@ -401,7 +401,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$cdnPublicKey](/API_docs/constructors/cdnPublicKey.html) = \['dc_id' => [int](/API_docs/types/int.html), 'public_key' => [string](/API_docs/types/string.html), \]; *** -

[$channel](/API_docs/constructors/channel.html) = \['creator' => [Bool](/API_docs/types/Bool.html), 'left' => [Bool](/API_docs/types/Bool.html), 'broadcast' => [Bool](/API_docs/types/Bool.html), 'verified' => [Bool](/API_docs/types/Bool.html), 'megagroup' => [Bool](/API_docs/types/Bool.html), 'restricted' => [Bool](/API_docs/types/Bool.html), 'signatures' => [Bool](/API_docs/types/Bool.html), 'min' => [Bool](/API_docs/types/Bool.html), 'scam' => [Bool](/API_docs/types/Bool.html), 'has_link' => [Bool](/API_docs/types/Bool.html), 'has_geo' => [Bool](/API_docs/types/Bool.html), 'slowmode_enabled' => [Bool](/API_docs/types/Bool.html), 'call_active' => [Bool](/API_docs/types/Bool.html), 'call_not_empty' => [Bool](/API_docs/types/Bool.html), 'fake' => [Bool](/API_docs/types/Bool.html), 'gigagroup' => [Bool](/API_docs/types/Bool.html), 'noforwards' => [Bool](/API_docs/types/Bool.html), 'join_to_send' => [Bool](/API_docs/types/Bool.html), 'join_request' => [Bool](/API_docs/types/Bool.html), 'forum' => [Bool](/API_docs/types/Bool.html), 'stories_hidden' => [Bool](/API_docs/types/Bool.html), 'stories_hidden_min' => [Bool](/API_docs/types/Bool.html), 'stories_unavailable' => [Bool](/API_docs/types/Bool.html), 'id' => [long](/API_docs/types/long.html), 'access_hash' => [long](/API_docs/types/long.html), 'title' => [string](/API_docs/types/string.html), 'username' => [string](/API_docs/types/string.html), 'photo' => [ChatPhoto](/API_docs/types/ChatPhoto.html), 'date' => [int](/API_docs/types/int.html), 'restriction_reason' => \[[RestrictionReason](/API_docs/types/RestrictionReason.html)\], 'admin_rights' => [ChatAdminRights](/API_docs/types/ChatAdminRights.html), 'banned_rights' => [ChatBannedRights](/API_docs/types/ChatBannedRights.html), 'default_banned_rights' => [ChatBannedRights](/API_docs/types/ChatBannedRights.html), 'participants_count' => [int](/API_docs/types/int.html), 'usernames' => \[[Username](/API_docs/types/Username.html)\], 'stories_max_id' => [int](/API_docs/types/int.html), 'color' => [PeerColor](/API_docs/types/PeerColor.html), 'profile_color' => [PeerColor](/API_docs/types/PeerColor.html), 'emoji_status' => [EmojiStatus](/API_docs/types/EmojiStatus.html), 'level' => [int](/API_docs/types/int.html), \]; +

[$channel](/API_docs/constructors/channel.html) = \['creator' => [Bool](/API_docs/types/Bool.html), 'left' => [Bool](/API_docs/types/Bool.html), 'broadcast' => [Bool](/API_docs/types/Bool.html), 'verified' => [Bool](/API_docs/types/Bool.html), 'megagroup' => [Bool](/API_docs/types/Bool.html), 'restricted' => [Bool](/API_docs/types/Bool.html), 'signatures' => [Bool](/API_docs/types/Bool.html), 'min' => [Bool](/API_docs/types/Bool.html), 'scam' => [Bool](/API_docs/types/Bool.html), 'has_link' => [Bool](/API_docs/types/Bool.html), 'has_geo' => [Bool](/API_docs/types/Bool.html), 'slowmode_enabled' => [Bool](/API_docs/types/Bool.html), 'call_active' => [Bool](/API_docs/types/Bool.html), 'call_not_empty' => [Bool](/API_docs/types/Bool.html), 'fake' => [Bool](/API_docs/types/Bool.html), 'gigagroup' => [Bool](/API_docs/types/Bool.html), 'noforwards' => [Bool](/API_docs/types/Bool.html), 'join_to_send' => [Bool](/API_docs/types/Bool.html), 'join_request' => [Bool](/API_docs/types/Bool.html), 'forum' => [Bool](/API_docs/types/Bool.html), 'stories_hidden' => [Bool](/API_docs/types/Bool.html), 'stories_hidden_min' => [Bool](/API_docs/types/Bool.html), 'stories_unavailable' => [Bool](/API_docs/types/Bool.html), 'signature_profiles' => [Bool](/API_docs/types/Bool.html), 'id' => [long](/API_docs/types/long.html), 'access_hash' => [long](/API_docs/types/long.html), 'title' => [string](/API_docs/types/string.html), 'username' => [string](/API_docs/types/string.html), 'photo' => [ChatPhoto](/API_docs/types/ChatPhoto.html), 'date' => [int](/API_docs/types/int.html), 'restriction_reason' => \[[RestrictionReason](/API_docs/types/RestrictionReason.html)\], 'admin_rights' => [ChatAdminRights](/API_docs/types/ChatAdminRights.html), 'banned_rights' => [ChatBannedRights](/API_docs/types/ChatBannedRights.html), 'default_banned_rights' => [ChatBannedRights](/API_docs/types/ChatBannedRights.html), 'participants_count' => [int](/API_docs/types/int.html), 'usernames' => \[[Username](/API_docs/types/Username.html)\], 'stories_max_id' => [int](/API_docs/types/int.html), 'color' => [PeerColor](/API_docs/types/PeerColor.html), 'profile_color' => [PeerColor](/API_docs/types/PeerColor.html), 'emoji_status' => [EmojiStatus](/API_docs/types/EmojiStatus.html), 'level' => [int](/API_docs/types/int.html), 'subscription_until_date' => [int](/API_docs/types/int.html), \]; ***

[$channelAdminLogEvent](/API_docs/constructors/channelAdminLogEvent.html) = \['id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'user_id' => [long](/API_docs/types/long.html), 'action' => [ChannelAdminLogEventAction](/API_docs/types/ChannelAdminLogEventAction.html), \]; @@ -541,6 +541,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$channelAdminLogEventActionTogglePreHistoryHidden](/API_docs/constructors/channelAdminLogEventActionTogglePreHistoryHidden.html) = \['new_value' => [Bool](/API_docs/types/Bool.html), \]; +*** +

[$channelAdminLogEventActionToggleSignatureProfiles](/API_docs/constructors/channelAdminLogEventActionToggleSignatureProfiles.html) = \['new_value' => [Bool](/API_docs/types/Bool.html), \]; + ***

[$channelAdminLogEventActionToggleSignatures](/API_docs/constructors/channelAdminLogEventActionToggleSignatures.html) = \['new_value' => [Bool](/API_docs/types/Bool.html), \]; @@ -557,7 +560,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$channelForbidden](/API_docs/constructors/channelForbidden.html) = \['broadcast' => [Bool](/API_docs/types/Bool.html), 'megagroup' => [Bool](/API_docs/types/Bool.html), 'id' => [long](/API_docs/types/long.html), 'access_hash' => [long](/API_docs/types/long.html), 'title' => [string](/API_docs/types/string.html), 'until_date' => [int](/API_docs/types/int.html), \]; *** -

[$channelFull](/API_docs/constructors/channelFull.html) = \['can_view_participants' => [Bool](/API_docs/types/Bool.html), 'can_set_username' => [Bool](/API_docs/types/Bool.html), 'can_set_stickers' => [Bool](/API_docs/types/Bool.html), 'hidden_prehistory' => [Bool](/API_docs/types/Bool.html), 'can_set_location' => [Bool](/API_docs/types/Bool.html), 'has_scheduled' => [Bool](/API_docs/types/Bool.html), 'can_view_stats' => [Bool](/API_docs/types/Bool.html), 'blocked' => [Bool](/API_docs/types/Bool.html), 'can_delete_channel' => [Bool](/API_docs/types/Bool.html), 'antispam' => [Bool](/API_docs/types/Bool.html), 'participants_hidden' => [Bool](/API_docs/types/Bool.html), 'translations_disabled' => [Bool](/API_docs/types/Bool.html), 'stories_pinned_available' => [Bool](/API_docs/types/Bool.html), 'view_forum_as_messages' => [Bool](/API_docs/types/Bool.html), 'restricted_sponsored' => [Bool](/API_docs/types/Bool.html), 'can_view_revenue' => [Bool](/API_docs/types/Bool.html), 'paid_media_allowed' => [Bool](/API_docs/types/Bool.html), 'can_view_stars_revenue' => [Bool](/API_docs/types/Bool.html), 'id' => [long](/API_docs/types/long.html), 'about' => [string](/API_docs/types/string.html), 'participants_count' => [int](/API_docs/types/int.html), 'admins_count' => [int](/API_docs/types/int.html), 'kicked_count' => [int](/API_docs/types/int.html), 'banned_count' => [int](/API_docs/types/int.html), 'online_count' => [int](/API_docs/types/int.html), 'read_inbox_max_id' => [int](/API_docs/types/int.html), 'read_outbox_max_id' => [int](/API_docs/types/int.html), 'unread_count' => [int](/API_docs/types/int.html), 'chat_photo' => [Photo](/API_docs/types/Photo.html), 'notify_settings' => [PeerNotifySettings](/API_docs/types/PeerNotifySettings.html), 'exported_invite' => [ExportedChatInvite](/API_docs/types/ExportedChatInvite.html), 'bot_info' => \[[BotInfo](/API_docs/types/BotInfo.html)\], 'migrated_from_chat_id' => [long](/API_docs/types/long.html), 'migrated_from_max_id' => [int](/API_docs/types/int.html), 'pinned_msg_id' => [int](/API_docs/types/int.html), 'stickerset' => [StickerSet](/API_docs/types/StickerSet.html), 'available_min_id' => [int](/API_docs/types/int.html), 'folder_id' => [int](/API_docs/types/int.html), 'linked_chat_id' => [long](/API_docs/types/long.html), 'location' => [ChannelLocation](/API_docs/types/ChannelLocation.html), 'slowmode_seconds' => [int](/API_docs/types/int.html), 'slowmode_next_send_date' => [int](/API_docs/types/int.html), 'stats_dc' => [int](/API_docs/types/int.html), 'pts' => [int](/API_docs/types/int.html), 'call' => [InputGroupCall](/API_docs/types/InputGroupCall.html), 'ttl_period' => [int](/API_docs/types/int.html), 'pending_suggestions' => \[[string](/API_docs/types/string.html)\], 'groupcall_default_join_as' => [Peer](/API_docs/types/Peer.html), 'theme_emoticon' => [string](/API_docs/types/string.html), 'requests_pending' => [int](/API_docs/types/int.html), 'recent_requesters' => \[[long](/API_docs/types/long.html)\], 'default_send_as' => [Peer](/API_docs/types/Peer.html), 'available_reactions' => [ChatReactions](/API_docs/types/ChatReactions.html), 'reactions_limit' => [int](/API_docs/types/int.html), 'stories' => [PeerStories](/API_docs/types/PeerStories.html), 'wallpaper' => [WallPaper](/API_docs/types/WallPaper.html), 'boosts_applied' => [int](/API_docs/types/int.html), 'boosts_unrestrict' => [int](/API_docs/types/int.html), 'emojiset' => [StickerSet](/API_docs/types/StickerSet.html), \]; +

[$channelFull](/API_docs/constructors/channelFull.html) = \['can_view_participants' => [Bool](/API_docs/types/Bool.html), 'can_set_username' => [Bool](/API_docs/types/Bool.html), 'can_set_stickers' => [Bool](/API_docs/types/Bool.html), 'hidden_prehistory' => [Bool](/API_docs/types/Bool.html), 'can_set_location' => [Bool](/API_docs/types/Bool.html), 'has_scheduled' => [Bool](/API_docs/types/Bool.html), 'can_view_stats' => [Bool](/API_docs/types/Bool.html), 'blocked' => [Bool](/API_docs/types/Bool.html), 'can_delete_channel' => [Bool](/API_docs/types/Bool.html), 'antispam' => [Bool](/API_docs/types/Bool.html), 'participants_hidden' => [Bool](/API_docs/types/Bool.html), 'translations_disabled' => [Bool](/API_docs/types/Bool.html), 'stories_pinned_available' => [Bool](/API_docs/types/Bool.html), 'view_forum_as_messages' => [Bool](/API_docs/types/Bool.html), 'restricted_sponsored' => [Bool](/API_docs/types/Bool.html), 'can_view_revenue' => [Bool](/API_docs/types/Bool.html), 'paid_media_allowed' => [Bool](/API_docs/types/Bool.html), 'can_view_stars_revenue' => [Bool](/API_docs/types/Bool.html), 'paid_reactions_available' => [Bool](/API_docs/types/Bool.html), 'id' => [long](/API_docs/types/long.html), 'about' => [string](/API_docs/types/string.html), 'participants_count' => [int](/API_docs/types/int.html), 'admins_count' => [int](/API_docs/types/int.html), 'kicked_count' => [int](/API_docs/types/int.html), 'banned_count' => [int](/API_docs/types/int.html), 'online_count' => [int](/API_docs/types/int.html), 'read_inbox_max_id' => [int](/API_docs/types/int.html), 'read_outbox_max_id' => [int](/API_docs/types/int.html), 'unread_count' => [int](/API_docs/types/int.html), 'chat_photo' => [Photo](/API_docs/types/Photo.html), 'notify_settings' => [PeerNotifySettings](/API_docs/types/PeerNotifySettings.html), 'exported_invite' => [ExportedChatInvite](/API_docs/types/ExportedChatInvite.html), 'bot_info' => \[[BotInfo](/API_docs/types/BotInfo.html)\], 'migrated_from_chat_id' => [long](/API_docs/types/long.html), 'migrated_from_max_id' => [int](/API_docs/types/int.html), 'pinned_msg_id' => [int](/API_docs/types/int.html), 'stickerset' => [StickerSet](/API_docs/types/StickerSet.html), 'available_min_id' => [int](/API_docs/types/int.html), 'folder_id' => [int](/API_docs/types/int.html), 'linked_chat_id' => [long](/API_docs/types/long.html), 'location' => [ChannelLocation](/API_docs/types/ChannelLocation.html), 'slowmode_seconds' => [int](/API_docs/types/int.html), 'slowmode_next_send_date' => [int](/API_docs/types/int.html), 'stats_dc' => [int](/API_docs/types/int.html), 'pts' => [int](/API_docs/types/int.html), 'call' => [InputGroupCall](/API_docs/types/InputGroupCall.html), 'ttl_period' => [int](/API_docs/types/int.html), 'pending_suggestions' => \[[string](/API_docs/types/string.html)\], 'groupcall_default_join_as' => [Peer](/API_docs/types/Peer.html), 'theme_emoticon' => [string](/API_docs/types/string.html), 'requests_pending' => [int](/API_docs/types/int.html), 'recent_requesters' => \[[long](/API_docs/types/long.html)\], 'default_send_as' => [Peer](/API_docs/types/Peer.html), 'available_reactions' => [ChatReactions](/API_docs/types/ChatReactions.html), 'reactions_limit' => [int](/API_docs/types/int.html), 'stories' => [PeerStories](/API_docs/types/PeerStories.html), 'wallpaper' => [WallPaper](/API_docs/types/WallPaper.html), 'boosts_applied' => [int](/API_docs/types/int.html), 'boosts_unrestrict' => [int](/API_docs/types/int.html), 'emojiset' => [StickerSet](/API_docs/types/StickerSet.html), \]; ***

[$channelLocation](/API_docs/constructors/channelLocation.html) = \['geo_point' => [GeoPoint](/API_docs/types/GeoPoint.html), 'address' => [string](/API_docs/types/string.html), \]; @@ -572,7 +575,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$channelMessagesFilterEmpty](/API_docs/constructors/channelMessagesFilterEmpty.html) = \[\]; *** -

[$channelParticipant](/API_docs/constructors/channelParticipant.html) = \['user_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), \]; +

[$channelParticipant](/API_docs/constructors/channelParticipant.html) = \['user_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'subscription_until_date' => [int](/API_docs/types/int.html), \]; ***

[$channelParticipantAdmin](/API_docs/constructors/channelParticipantAdmin.html) = \['can_edit' => [Bool](/API_docs/types/Bool.html), 'self' => [Bool](/API_docs/types/Bool.html), 'user_id' => [long](/API_docs/types/long.html), 'inviter_id' => [long](/API_docs/types/long.html), 'promoted_by' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'admin_rights' => [ChatAdminRights](/API_docs/types/ChatAdminRights.html), 'rank' => [string](/API_docs/types/string.html), \]; @@ -587,7 +590,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$channelParticipantLeft](/API_docs/constructors/channelParticipantLeft.html) = \['peer' => [long](/API_docs/types/long.html), \]; *** -

[$channelParticipantSelf](/API_docs/constructors/channelParticipantSelf.html) = \['via_request' => [Bool](/API_docs/types/Bool.html), 'user_id' => [long](/API_docs/types/long.html), 'inviter_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), \]; +

[$channelParticipantSelf](/API_docs/constructors/channelParticipantSelf.html) = \['via_request' => [Bool](/API_docs/types/Bool.html), 'user_id' => [long](/API_docs/types/long.html), 'inviter_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'subscription_until_date' => [int](/API_docs/types/int.html), \]; ***

[$channelParticipantsAdmins](/API_docs/constructors/channelParticipantsAdmins.html) = \[\]; @@ -659,13 +662,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$chatFull](/API_docs/constructors/chatFull.html) = \['can_set_username' => [Bool](/API_docs/types/Bool.html), 'has_scheduled' => [Bool](/API_docs/types/Bool.html), 'translations_disabled' => [Bool](/API_docs/types/Bool.html), 'id' => [long](/API_docs/types/long.html), 'about' => [string](/API_docs/types/string.html), 'participants' => [ChatParticipants](/API_docs/types/ChatParticipants.html), 'chat_photo' => [Photo](/API_docs/types/Photo.html), 'notify_settings' => [PeerNotifySettings](/API_docs/types/PeerNotifySettings.html), 'exported_invite' => [ExportedChatInvite](/API_docs/types/ExportedChatInvite.html), 'bot_info' => \[[BotInfo](/API_docs/types/BotInfo.html)\], 'pinned_msg_id' => [int](/API_docs/types/int.html), 'folder_id' => [int](/API_docs/types/int.html), 'call' => [InputGroupCall](/API_docs/types/InputGroupCall.html), 'ttl_period' => [int](/API_docs/types/int.html), 'groupcall_default_join_as' => [Peer](/API_docs/types/Peer.html), 'theme_emoticon' => [string](/API_docs/types/string.html), 'requests_pending' => [int](/API_docs/types/int.html), 'recent_requesters' => \[[long](/API_docs/types/long.html)\], 'available_reactions' => [ChatReactions](/API_docs/types/ChatReactions.html), 'reactions_limit' => [int](/API_docs/types/int.html), \]; *** -

[$chatInvite](/API_docs/constructors/chatInvite.html) = \['channel' => [Bool](/API_docs/types/Bool.html), 'broadcast' => [Bool](/API_docs/types/Bool.html), 'public' => [Bool](/API_docs/types/Bool.html), 'megagroup' => [Bool](/API_docs/types/Bool.html), 'request_needed' => [Bool](/API_docs/types/Bool.html), 'verified' => [Bool](/API_docs/types/Bool.html), 'scam' => [Bool](/API_docs/types/Bool.html), 'fake' => [Bool](/API_docs/types/Bool.html), 'title' => [string](/API_docs/types/string.html), 'about' => [string](/API_docs/types/string.html), 'photo' => [Photo](/API_docs/types/Photo.html), 'participants_count' => [int](/API_docs/types/int.html), 'participants' => \[[User](/API_docs/types/User.html)\], 'color' => [int](/API_docs/types/int.html), \]; +

[$chatInvite](/API_docs/constructors/chatInvite.html) = \['channel' => [Bool](/API_docs/types/Bool.html), 'broadcast' => [Bool](/API_docs/types/Bool.html), 'public' => [Bool](/API_docs/types/Bool.html), 'megagroup' => [Bool](/API_docs/types/Bool.html), 'request_needed' => [Bool](/API_docs/types/Bool.html), 'verified' => [Bool](/API_docs/types/Bool.html), 'scam' => [Bool](/API_docs/types/Bool.html), 'fake' => [Bool](/API_docs/types/Bool.html), 'can_refulfill_subscription' => [Bool](/API_docs/types/Bool.html), 'title' => [string](/API_docs/types/string.html), 'about' => [string](/API_docs/types/string.html), 'photo' => [Photo](/API_docs/types/Photo.html), 'participants_count' => [int](/API_docs/types/int.html), 'participants' => \[[User](/API_docs/types/User.html)\], 'color' => [int](/API_docs/types/int.html), 'subscription_pricing' => [StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html), 'subscription_form_id' => [long](/API_docs/types/long.html), \]; ***

[$chatInviteAlready](/API_docs/constructors/chatInviteAlready.html) = \['chat' => [Chat](/API_docs/types/Chat.html), \]; *** -

[$chatInviteExported](/API_docs/constructors/chatInviteExported.html) = \['revoked' => [Bool](/API_docs/types/Bool.html), 'permanent' => [Bool](/API_docs/types/Bool.html), 'request_needed' => [Bool](/API_docs/types/Bool.html), 'link' => [string](/API_docs/types/string.html), 'admin_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'start_date' => [int](/API_docs/types/int.html), 'expire_date' => [int](/API_docs/types/int.html), 'usage_limit' => [int](/API_docs/types/int.html), 'usage' => [int](/API_docs/types/int.html), 'requested' => [int](/API_docs/types/int.html), 'title' => [string](/API_docs/types/string.html), \]; +

[$chatInviteExported](/API_docs/constructors/chatInviteExported.html) = \['revoked' => [Bool](/API_docs/types/Bool.html), 'permanent' => [Bool](/API_docs/types/Bool.html), 'request_needed' => [Bool](/API_docs/types/Bool.html), 'link' => [string](/API_docs/types/string.html), 'admin_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'start_date' => [int](/API_docs/types/int.html), 'expire_date' => [int](/API_docs/types/int.html), 'usage_limit' => [int](/API_docs/types/int.html), 'usage' => [int](/API_docs/types/int.html), 'requested' => [int](/API_docs/types/int.html), 'subscription_expired' => [int](/API_docs/types/int.html), 'title' => [string](/API_docs/types/string.html), 'subscription_pricing' => [StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html), \]; ***

[$chatInviteImporter](/API_docs/constructors/chatInviteImporter.html) = \['requested' => [Bool](/API_docs/types/Bool.html), 'via_chatlist' => [Bool](/API_docs/types/Bool.html), 'user_id' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'about' => [string](/API_docs/types/string.html), 'approved_by' => [long](/API_docs/types/long.html), \]; @@ -1354,6 +1357,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$inputFileLocation](/API_docs/constructors/inputFileLocation.html) = \['volume_id' => [long](/API_docs/types/long.html), 'local_id' => [int](/API_docs/types/int.html), 'secret' => [long](/API_docs/types/long.html), 'file_reference' => [bytes](/API_docs/types/bytes.html), \]; +*** +

[$inputFileStoryDocument](/API_docs/constructors/inputFileStoryDocument.html) = \['id' => [InputDocument](/API_docs/types/InputDocument.html), \]; + ***

[$inputFolderPeer](/API_docs/constructors/inputFolderPeer.html) = \['peer' => [InputPeer](/API_docs/types/InputPeer.html), 'folder_id' => [int](/API_docs/types/int.html), \]; @@ -1375,6 +1381,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$inputGroupCallStream](/API_docs/constructors/inputGroupCallStream.html) = \['call' => [InputGroupCall](/API_docs/types/InputGroupCall.html), 'time_ms' => [long](/API_docs/types/long.html), 'scale' => [int](/API_docs/types/int.html), 'video_channel' => [int](/API_docs/types/int.html), 'video_quality' => [int](/API_docs/types/int.html), \]; +*** +

[$inputInvoiceChatInviteSubscription](/API_docs/constructors/inputInvoiceChatInviteSubscription.html) = \['hash' => [string](/API_docs/types/string.html), \]; + ***

[$inputInvoiceMessage](/API_docs/constructors/inputInvoiceMessage.html) = \['peer' => [InputPeer](/API_docs/types/InputPeer.html), 'msg_id' => [int](/API_docs/types/int.html), \]; @@ -2213,7 +2222,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$messageRange](/API_docs/constructors/messageRange.html) = \['min_id' => [int](/API_docs/types/int.html), 'max_id' => [int](/API_docs/types/int.html), \]; *** -

[$messageReactions](/API_docs/constructors/messageReactions.html) = \['min' => [Bool](/API_docs/types/Bool.html), 'can_see_list' => [Bool](/API_docs/types/Bool.html), 'reactions_as_tags' => [Bool](/API_docs/types/Bool.html), 'results' => \[[ReactionCount](/API_docs/types/ReactionCount.html)\], 'recent_reactions' => \[[MessagePeerReaction](/API_docs/types/MessagePeerReaction.html)\], \]; +

[$messageReactions](/API_docs/constructors/messageReactions.html) = \['min' => [Bool](/API_docs/types/Bool.html), 'can_see_list' => [Bool](/API_docs/types/Bool.html), 'reactions_as_tags' => [Bool](/API_docs/types/Bool.html), 'results' => \[[ReactionCount](/API_docs/types/ReactionCount.html)\], 'recent_reactions' => \[[MessagePeerReaction](/API_docs/types/MessagePeerReaction.html)\], 'top_reactors' => \[[MessageReactor](/API_docs/types/MessageReactor.html)\], \]; + +*** +

[$messageReactor](/API_docs/constructors/messageReactor.html) = \['top' => [Bool](/API_docs/types/Bool.html), 'my' => [Bool](/API_docs/types/Bool.html), 'anonymous' => [Bool](/API_docs/types/Bool.html), 'peer_id' => [Peer](/API_docs/types/Peer.html), 'count' => [int](/API_docs/types/int.html), \]; ***

[$messageReplies](/API_docs/constructors/messageReplies.html) = \['comments' => [Bool](/API_docs/types/Bool.html), 'replies' => [int](/API_docs/types/int.html), 'replies_pts' => [int](/API_docs/types/int.html), 'recent_repliers' => \[[Peer](/API_docs/types/Peer.html)\], 'channel_id' => [long](/API_docs/types/long.html), 'max_id' => [int](/API_docs/types/int.html), 'read_max_id' => [int](/API_docs/types/int.html), \]; @@ -2699,7 +2711,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$payments.starsRevenueWithdrawalUrl](/API_docs/constructors/payments.starsRevenueWithdrawalUrl.html) = \['url' => [string](/API_docs/types/string.html), \]; *** -

[$payments.starsStatus](/API_docs/constructors/payments.starsStatus.html) = \['balance' => [long](/API_docs/types/long.html), 'history' => \[[StarsTransaction](/API_docs/types/StarsTransaction.html)\], 'next_offset' => [string](/API_docs/types/string.html), 'chats' => \[[Chat](/API_docs/types/Chat.html)\], 'users' => \[[User](/API_docs/types/User.html)\], \]; +

[$payments.starsStatus](/API_docs/constructors/payments.starsStatus.html) = \['balance' => [long](/API_docs/types/long.html), 'subscriptions' => \[[StarsSubscription](/API_docs/types/StarsSubscription.html)\], 'subscriptions_next_offset' => [string](/API_docs/types/string.html), 'subscriptions_missing_balance' => [long](/API_docs/types/long.html), 'history' => \[[StarsTransaction](/API_docs/types/StarsTransaction.html)\], 'next_offset' => [string](/API_docs/types/string.html), 'chats' => \[[Chat](/API_docs/types/Chat.html)\], 'users' => \[[User](/API_docs/types/User.html)\], \]; ***

[$payments.validatedRequestedInfo](/API_docs/constructors/payments.validatedRequestedInfo.html) = \['id' => [string](/API_docs/types/string.html), 'shipping_options' => \[[ShippingOption](/API_docs/types/ShippingOption.html)\], \]; @@ -2962,6 +2974,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$reactionNotificationsFromContacts](/API_docs/constructors/reactionNotificationsFromContacts.html) = \[\]; +*** +

[$reactionPaid](/API_docs/constructors/reactionPaid.html) = \[\]; + ***

[$reactionsNotifySettings](/API_docs/constructors/reactionsNotifySettings.html) = \['messages_notify_from' => [ReactionNotificationsFrom](/API_docs/types/ReactionNotificationsFrom.html), 'stories_notify_from' => [ReactionNotificationsFrom](/API_docs/types/ReactionNotificationsFrom.html), 'sound' => [NotificationSound](/API_docs/types/NotificationSound.html), 'show_previews' => [Bool](/API_docs/types/Bool.html), \]; @@ -3212,7 +3227,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$speakingInGroupCallAction](/API_docs/constructors/speakingInGroupCallAction.html) = \[\]; *** -

[$sponsoredMessage](/API_docs/constructors/sponsoredMessage.html) = \['recommended' => [Bool](/API_docs/types/Bool.html), 'can_report' => [Bool](/API_docs/types/Bool.html), 'url' => [string](/API_docs/types/string.html), 'title' => [string](/API_docs/types/string.html), 'message' => [string](/API_docs/types/string.html), 'entities' => \[[MessageEntity](/API_docs/types/MessageEntity.html)\], 'photo' => [Photo](/API_docs/types/Photo.html), 'color' => [PeerColor](/API_docs/types/PeerColor.html), 'button_text' => [string](/API_docs/types/string.html), 'sponsor_info' => [string](/API_docs/types/string.html), 'additional_info' => [string](/API_docs/types/string.html), \]; +

[$sponsoredMessage](/API_docs/constructors/sponsoredMessage.html) = \['recommended' => [Bool](/API_docs/types/Bool.html), 'can_report' => [Bool](/API_docs/types/Bool.html), 'url' => [string](/API_docs/types/string.html), 'title' => [string](/API_docs/types/string.html), 'message' => [string](/API_docs/types/string.html), 'entities' => \[[MessageEntity](/API_docs/types/MessageEntity.html)\], 'photo' => [Photo](/API_docs/types/Photo.html), 'media' => [MessageMedia](/API_docs/types/MessageMedia.html), 'color' => [PeerColor](/API_docs/types/PeerColor.html), 'button_text' => [string](/API_docs/types/string.html), 'sponsor_info' => [string](/API_docs/types/string.html), 'additional_info' => [string](/API_docs/types/string.html), \]; ***

[$sponsoredMessageReportOption](/API_docs/constructors/sponsoredMessageReportOption.html) = \['text' => [string](/API_docs/types/string.html), 'option' => [bytes](/API_docs/types/bytes.html), \]; @@ -3223,11 +3238,17 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$starsRevenueStatus](/API_docs/constructors/starsRevenueStatus.html) = \['withdrawal_enabled' => [Bool](/API_docs/types/Bool.html), 'current_balance' => [long](/API_docs/types/long.html), 'available_balance' => [long](/API_docs/types/long.html), 'overall_revenue' => [long](/API_docs/types/long.html), 'next_withdrawal_at' => [int](/API_docs/types/int.html), \]; +*** +

[$starsSubscription](/API_docs/constructors/starsSubscription.html) = \['canceled' => [Bool](/API_docs/types/Bool.html), 'can_refulfill' => [Bool](/API_docs/types/Bool.html), 'missing_balance' => [Bool](/API_docs/types/Bool.html), 'id' => [string](/API_docs/types/string.html), 'peer' => [long](/API_docs/types/long.html), 'until_date' => [int](/API_docs/types/int.html), 'pricing' => [StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html), 'chat_invite_hash' => [string](/API_docs/types/string.html), \]; + +*** +

[$starsSubscriptionPricing](/API_docs/constructors/starsSubscriptionPricing.html) = \['period' => [int](/API_docs/types/int.html), 'amount' => [long](/API_docs/types/long.html), \]; + ***

[$starsTopupOption](/API_docs/constructors/starsTopupOption.html) = \['extended' => [Bool](/API_docs/types/Bool.html), 'stars' => [long](/API_docs/types/long.html), 'store_product' => [string](/API_docs/types/string.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), \]; *** -

[$starsTransaction](/API_docs/constructors/starsTransaction.html) = \['refund' => [Bool](/API_docs/types/Bool.html), 'pending' => [Bool](/API_docs/types/Bool.html), 'failed' => [Bool](/API_docs/types/Bool.html), 'gift' => [Bool](/API_docs/types/Bool.html), 'id' => [string](/API_docs/types/string.html), 'stars' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'peer' => [StarsTransactionPeer](/API_docs/types/StarsTransactionPeer.html), 'title' => [string](/API_docs/types/string.html), 'description' => [string](/API_docs/types/string.html), 'photo' => [WebDocument](/API_docs/types/WebDocument.html), 'transaction_date' => [int](/API_docs/types/int.html), 'transaction_url' => [string](/API_docs/types/string.html), 'bot_payload' => [bytes](/API_docs/types/bytes.html), 'msg_id' => [int](/API_docs/types/int.html), 'extended_media' => \[[MessageMedia](/API_docs/types/MessageMedia.html)\], \]; +

[$starsTransaction](/API_docs/constructors/starsTransaction.html) = \['refund' => [Bool](/API_docs/types/Bool.html), 'pending' => [Bool](/API_docs/types/Bool.html), 'failed' => [Bool](/API_docs/types/Bool.html), 'gift' => [Bool](/API_docs/types/Bool.html), 'reaction' => [Bool](/API_docs/types/Bool.html), 'id' => [string](/API_docs/types/string.html), 'stars' => [long](/API_docs/types/long.html), 'date' => [int](/API_docs/types/int.html), 'peer' => [StarsTransactionPeer](/API_docs/types/StarsTransactionPeer.html), 'title' => [string](/API_docs/types/string.html), 'description' => [string](/API_docs/types/string.html), 'photo' => [WebDocument](/API_docs/types/WebDocument.html), 'transaction_date' => [int](/API_docs/types/int.html), 'transaction_url' => [string](/API_docs/types/string.html), 'bot_payload' => [bytes](/API_docs/types/bytes.html), 'msg_id' => [int](/API_docs/types/int.html), 'extended_media' => \[[MessageMedia](/API_docs/types/MessageMedia.html)\], 'subscription_period' => [int](/API_docs/types/int.html), \]; ***

[$starsTransactionPeer](/API_docs/constructors/starsTransactionPeer.html) = \['peer' => [long](/API_docs/types/long.html), \]; diff --git a/docs/API_docs/constructors/inputFileStoryDocument.md b/docs/API_docs/constructors/inputFileStoryDocument.md new file mode 100644 index 0000000000..5e32308bf8 --- /dev/null +++ b/docs/API_docs/constructors/inputFileStoryDocument.md @@ -0,0 +1,27 @@ +--- +title: "inputFileStoryDocument" +description: "inputFileStoryDocument attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputFileStoryDocument +[Back to constructors index](/API_docs/constructors/index.html) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|id|[MessageMedia, Message, Update or InputDocument](/API_docs/types/InputDocument.html) | Optional| + + + +### Type: [InputFile](/API_docs/types/InputFile.html) + + +### Example: + +``` +$inputFileStoryDocument = ['_' => 'inputFileStoryDocument', 'id' => InputDocument]; +``` diff --git a/docs/API_docs/constructors/inputInvoiceChatInviteSubscription.md b/docs/API_docs/constructors/inputInvoiceChatInviteSubscription.md new file mode 100644 index 0000000000..dbcc9e973c --- /dev/null +++ b/docs/API_docs/constructors/inputInvoiceChatInviteSubscription.md @@ -0,0 +1,27 @@ +--- +title: "inputInvoiceChatInviteSubscription" +description: "inputInvoiceChatInviteSubscription attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputInvoiceChatInviteSubscription +[Back to constructors index](/API_docs/constructors/index.html) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|hash|[string](/API_docs/types/string.html) | Yes| + + + +### Type: [InputInvoice](/API_docs/types/InputInvoice.html) + + +### Example: + +``` +$inputInvoiceChatInviteSubscription = ['_' => 'inputInvoiceChatInviteSubscription', 'hash' => 'string']; +``` diff --git a/docs/API_docs/constructors/messageReactions.md b/docs/API_docs/constructors/messageReactions.md index 3b6f835b1f..826831068c 100644 --- a/docs/API_docs/constructors/messageReactions.md +++ b/docs/API_docs/constructors/messageReactions.md @@ -20,6 +20,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |reactions\_as\_tags|[Bool](/API_docs/types/Bool.html) | Optional| |results|Array of [ReactionCount](/API_docs/types/ReactionCount.html) | Yes|Reactions| |recent\_reactions|Array of [MessagePeerReaction](/API_docs/types/MessagePeerReaction.html) | Optional|List of recent peers and their reactions| +|top\_reactors|Array of [MessageReactor](/API_docs/types/MessageReactor.html) | Optional| @@ -29,5 +30,5 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$messageReactions = ['_' => 'messageReactions', 'min' => Bool, 'can_see_list' => Bool, 'reactions_as_tags' => Bool, 'results' => [ReactionCount, ReactionCount], 'recent_reactions' => [MessagePeerReaction, MessagePeerReaction]]; +$messageReactions = ['_' => 'messageReactions', 'min' => Bool, 'can_see_list' => Bool, 'reactions_as_tags' => Bool, 'results' => [ReactionCount, ReactionCount], 'recent_reactions' => [MessagePeerReaction, MessagePeerReaction], 'top_reactors' => [MessageReactor, MessageReactor]]; ``` diff --git a/docs/API_docs/constructors/messageReactor.md b/docs/API_docs/constructors/messageReactor.md new file mode 100644 index 0000000000..c306c0fdc6 --- /dev/null +++ b/docs/API_docs/constructors/messageReactor.md @@ -0,0 +1,31 @@ +--- +title: "messageReactor" +description: "messageReactor attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageReactor +[Back to constructors index](/API_docs/constructors/index.html) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|top|[Bool](/API_docs/types/Bool.html) | Optional| +|my|[Bool](/API_docs/types/Bool.html) | Optional| +|anonymous|[Bool](/API_docs/types/Bool.html) | Optional| +|peer\_id|[Peer](/API_docs/types/Peer.html) | Optional| +|count|[int](/API_docs/types/int.html) | Yes| + + + +### Type: [MessageReactor](/API_docs/types/MessageReactor.html) + + +### Example: + +``` +$messageReactor = ['_' => 'messageReactor', 'top' => Bool, 'my' => Bool, 'anonymous' => Bool, 'peer_id' => Peer, 'count' => int]; +``` diff --git a/docs/API_docs/constructors/payments.starsStatus.md b/docs/API_docs/constructors/payments.starsStatus.md index 5fbaa00f61..b47cb7c2cb 100644 --- a/docs/API_docs/constructors/payments.starsStatus.md +++ b/docs/API_docs/constructors/payments.starsStatus.md @@ -15,7 +15,10 @@ redirect_from: /API_docs/constructors/payments_starsStatus.html | Name | Type | Required | |----------|---------------|----------| |balance|[long](/API_docs/types/long.html) | Yes| -|history|Array of [StarsTransaction](/API_docs/types/StarsTransaction.html) | Yes| +|subscriptions|Array of [StarsSubscription](/API_docs/types/StarsSubscription.html) | Optional| +|subscriptions\_next\_offset|[string](/API_docs/types/string.html) | Optional| +|subscriptions\_missing\_balance|[long](/API_docs/types/long.html) | Optional| +|history|Array of [StarsTransaction](/API_docs/types/StarsTransaction.html) | Optional| |next\_offset|[string](/API_docs/types/string.html) | Optional| |chats|Array of [Chat](/API_docs/types/Chat.html) | Yes| |users|Array of [User](/API_docs/types/User.html) | Yes| @@ -28,5 +31,5 @@ redirect_from: /API_docs/constructors/payments_starsStatus.html ### Example: ``` -$payments_starsStatus = ['_' => 'payments.starsStatus', 'balance' => long, 'history' => [StarsTransaction, StarsTransaction], 'next_offset' => 'string', 'chats' => [Chat, Chat], 'users' => [User, User]]; +$payments_starsStatus = ['_' => 'payments.starsStatus', 'balance' => long, 'subscriptions' => [StarsSubscription, StarsSubscription], 'subscriptions_next_offset' => 'string', 'subscriptions_missing_balance' => long, 'history' => [StarsTransaction, StarsTransaction], 'next_offset' => 'string', 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` diff --git a/docs/API_docs/constructors/reactionPaid.md b/docs/API_docs/constructors/reactionPaid.md new file mode 100644 index 0000000000..a8683905e8 --- /dev/null +++ b/docs/API_docs/constructors/reactionPaid.md @@ -0,0 +1,22 @@ +--- +title: "reactionPaid" +description: "reactionPaid attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: reactionPaid +[Back to constructors index](/API_docs/constructors/index.html) + + + + + + +### Type: [Reaction](/API_docs/types/Reaction.html) + + +### Example: + +``` +$reactionPaid = ['_' => 'reactionPaid']; +``` diff --git a/docs/API_docs/constructors/sponsoredMessage.md b/docs/API_docs/constructors/sponsoredMessage.md index 0b88a31f51..31bf29389a 100644 --- a/docs/API_docs/constructors/sponsoredMessage.md +++ b/docs/API_docs/constructors/sponsoredMessage.md @@ -23,6 +23,7 @@ A [sponsored message](https://core.telegram.org/api/sponsored-messages). |entities|Array of [MessageEntity](/API_docs/types/MessageEntity.html) | Optional|[Message entities for styled text](https://core.telegram.org/api/entities)| |parse\_mode| [string](/API_docs/types/string.html) | Whether to parse HTML or Markdown markup in the message| Optional | |photo|[Photo](/API_docs/types/Photo.html) | Optional| +|media|[MessageMedia](/API_docs/types/MessageMedia.html) | Optional| |color|[PeerColor](/API_docs/types/PeerColor.html) | Optional| |button\_text|[string](/API_docs/types/string.html) | Yes|Text of the sponsored message button.| |sponsor\_info|[string](/API_docs/types/string.html) | Optional|If set, contains additional information about the sponsor to be shown along with the message.| @@ -96,5 +97,5 @@ pre-formatted fixed-width code block written in the PHP programming language ### Example: ``` -$sponsoredMessage = ['_' => 'sponsoredMessage', 'recommended' => Bool, 'can_report' => Bool, 'url' => 'string', 'title' => 'string', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]parse_mode: 'string', , 'photo' => Photo, 'color' => PeerColor, 'button_text' => 'string', 'sponsor_info' => 'string', 'additional_info' => 'string']; +$sponsoredMessage = ['_' => 'sponsoredMessage', 'recommended' => Bool, 'can_report' => Bool, 'url' => 'string', 'title' => 'string', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]parse_mode: 'string', , 'photo' => Photo, 'media' => MessageMedia, 'color' => PeerColor, 'button_text' => 'string', 'sponsor_info' => 'string', 'additional_info' => 'string']; ``` diff --git a/docs/API_docs/constructors/starsSubscription.md b/docs/API_docs/constructors/starsSubscription.md new file mode 100644 index 0000000000..3f8ab092d4 --- /dev/null +++ b/docs/API_docs/constructors/starsSubscription.md @@ -0,0 +1,34 @@ +--- +title: "starsSubscription" +description: "starsSubscription attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: starsSubscription +[Back to constructors index](/API_docs/constructors/index.html) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|canceled|[Bool](/API_docs/types/Bool.html) | Optional| +|can\_refulfill|[Bool](/API_docs/types/Bool.html) | Optional| +|missing\_balance|[Bool](/API_docs/types/Bool.html) | Optional| +|id|[string](/API_docs/types/string.html) | Yes| +|peer|[long](/API_docs/types/long.html) | Yes| +|until\_date|[int](/API_docs/types/int.html) | Yes| +|pricing|[StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html) | Yes| +|chat\_invite\_hash|[string](/API_docs/types/string.html) | Optional| + + + +### Type: [StarsSubscription](/API_docs/types/StarsSubscription.html) + + +### Example: + +``` +$starsSubscription = ['_' => 'starsSubscription', 'canceled' => Bool, 'can_refulfill' => Bool, 'missing_balance' => Bool, 'id' => 'string', 'peer' => long, 'until_date' => int, 'pricing' => StarsSubscriptionPricing, 'chat_invite_hash' => 'string']; +``` diff --git a/docs/API_docs/constructors/starsSubscriptionPricing.md b/docs/API_docs/constructors/starsSubscriptionPricing.md new file mode 100644 index 0000000000..a79494d879 --- /dev/null +++ b/docs/API_docs/constructors/starsSubscriptionPricing.md @@ -0,0 +1,28 @@ +--- +title: "starsSubscriptionPricing" +description: "starsSubscriptionPricing attributes, type and example" +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: starsSubscriptionPricing +[Back to constructors index](/API_docs/constructors/index.html) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|period|[int](/API_docs/types/int.html) | Yes| +|amount|[long](/API_docs/types/long.html) | Yes| + + + +### Type: [StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html) + + +### Example: + +``` +$starsSubscriptionPricing = ['_' => 'starsSubscriptionPricing', 'period' => int, 'amount' => long]; +``` diff --git a/docs/API_docs/constructors/starsTransaction.md b/docs/API_docs/constructors/starsTransaction.md index a32a2916b0..127b3fc04e 100644 --- a/docs/API_docs/constructors/starsTransaction.md +++ b/docs/API_docs/constructors/starsTransaction.md @@ -17,6 +17,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |pending|[Bool](/API_docs/types/Bool.html) | Optional| |failed|[Bool](/API_docs/types/Bool.html) | Optional| |gift|[Bool](/API_docs/types/Bool.html) | Optional| +|reaction|[Bool](/API_docs/types/Bool.html) | Optional| |id|[string](/API_docs/types/string.html) | Yes| |stars|[long](/API_docs/types/long.html) | Yes| |date|[int](/API_docs/types/int.html) | Yes| @@ -29,6 +30,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |bot\_payload|[bytes](/API_docs/types/bytes.html) | Optional| |msg\_id|[int](/API_docs/types/int.html) | Optional| |extended\_media|Array of [MessageMedia](/API_docs/types/MessageMedia.html) | Optional| +|subscription\_period|[int](/API_docs/types/int.html) | Optional| @@ -38,5 +40,5 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$starsTransaction = ['_' => 'starsTransaction', 'refund' => Bool, 'pending' => Bool, 'failed' => Bool, 'gift' => Bool, 'id' => 'string', 'stars' => long, 'date' => int, 'peer' => StarsTransactionPeer, 'title' => 'string', 'description' => 'string', 'photo' => WebDocument, 'transaction_date' => int, 'transaction_url' => 'string', 'bot_payload' => 'bytes', 'msg_id' => int, 'extended_media' => [MessageMedia, MessageMedia]]; +$starsTransaction = ['_' => 'starsTransaction', 'refund' => Bool, 'pending' => Bool, 'failed' => Bool, 'gift' => Bool, 'reaction' => Bool, 'id' => 'string', 'stars' => long, 'date' => int, 'peer' => StarsTransactionPeer, 'title' => 'string', 'description' => 'string', 'photo' => WebDocument, 'transaction_date' => int, 'transaction_url' => 'string', 'bot_payload' => 'bytes', 'msg_id' => int, 'extended_media' => [MessageMedia, MessageMedia], 'subscription_period' => int]; ``` diff --git a/docs/API_docs/index.md b/docs/API_docs/index.md index 5df735ac0c..3e2ec5582c 100644 --- a/docs/API_docs/index.md +++ b/docs/API_docs/index.md @@ -1,6 +1,6 @@ --- title: "Telegram RPC API" -description: "MadelineProto API documentation (layer 185)" +description: "MadelineProto API documentation (layer 186)" has_children: true has_toc: false image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png diff --git a/docs/API_docs/methods/api_index.md b/docs/API_docs/methods/api_index.md index 343c6b6b16..ab335d947e 100644 --- a/docs/API_docs/methods/api_index.md +++ b/docs/API_docs/methods/api_index.md @@ -893,7 +893,7 @@ $MadelineProto->[channels->togglePreHistoryHidden](/API_docs/methods/channels.to ***

-$MadelineProto->[channels->toggleSignatures](/API_docs/methods/channels.toggleSignatures.html)(\[channel: $[InputChannel](/API_docs/types/InputChannel.html), enabled: $[Bool](/API_docs/types/Bool.html), \]) === [$Updates](/API_docs/types/Updates.html) +$MadelineProto->[channels->toggleSignatures](/API_docs/methods/channels.toggleSignatures.html)(\[signatures_enabled: $[Bool](/API_docs/types/Bool.html), profiles_enabled: $[Bool](/API_docs/types/Bool.html), channel: $[InputChannel](/API_docs/types/InputChannel.html), \]) === [$Updates](/API_docs/types/Updates.html) ***

@@ -1381,7 +1381,7 @@ $MadelineProto->[messages->editQuickReplyShortcut](/API_docs/methods/messages.ed ***

-$MadelineProto->[messages->exportChatInvite](/API_docs/methods/messages.exportChatInvite.html)(\[legacy_revoke_permanent: $[Bool](/API_docs/types/Bool.html), request_needed: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), expire_date: $[int](/API_docs/types/int.html), usage_limit: $[int](/API_docs/types/int.html), title: $[string](/API_docs/types/string.html), \]) === [$ExportedChatInvite](/API_docs/types/ExportedChatInvite.html) +$MadelineProto->[messages->exportChatInvite](/API_docs/methods/messages.exportChatInvite.html)(\[legacy_revoke_permanent: $[Bool](/API_docs/types/Bool.html), request_needed: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), expire_date: $[int](/API_docs/types/int.html), usage_limit: $[int](/API_docs/types/int.html), title: $[string](/API_docs/types/string.html), subscription_pricing: $[StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html), \]) === [$ExportedChatInvite](/API_docs/types/ExportedChatInvite.html) ***

@@ -1437,7 +1437,7 @@ $MadelineProto->[messages->getBotCallbackAnswer](/API_docs/methods/messages.getB ***

-$MadelineProto->[messages->getChatInviteImporters](/API_docs/methods/messages.getChatInviteImporters.html)(\[requested: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), link: $[string](/API_docs/types/string.html), q: $[string](/API_docs/types/string.html), offset_date: $[int](/API_docs/types/int.html), offset_user: $[InputUser](/API_docs/types/InputUser.html), limit: $[int](/API_docs/types/int.html), \]) === [$messages.ChatInviteImporters](/API_docs/types/messages.ChatInviteImporters.html) +$MadelineProto->[messages->getChatInviteImporters](/API_docs/methods/messages.getChatInviteImporters.html)(\[requested: $[Bool](/API_docs/types/Bool.html), subscription_expired: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), link: $[string](/API_docs/types/string.html), q: $[string](/API_docs/types/string.html), offset_date: $[int](/API_docs/types/int.html), offset_user: $[InputUser](/API_docs/types/InputUser.html), limit: $[int](/API_docs/types/int.html), \]) === [$messages.ChatInviteImporters](/API_docs/types/messages.ChatInviteImporters.html) ***

@@ -1935,6 +1935,10 @@ $MadelineProto->[messages->sendMessage](/API_docs/methods/messages.sendMessage.h

$MadelineProto->[messages->sendMultiMedia](/API_docs/methods/messages.sendMultiMedia.html)(\[silent: $[Bool](/API_docs/types/Bool.html), background: $[Bool](/API_docs/types/Bool.html), clear_draft: $[Bool](/API_docs/types/Bool.html), noforwards: $[Bool](/API_docs/types/Bool.html), update_stickersets_order: $[Bool](/API_docs/types/Bool.html), invert_media: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), reply_to: $[InputReplyTo](/API_docs/types/InputReplyTo.html), multi_media: \[$[InputSingleMedia](/API_docs/types/InputSingleMedia.html)\], schedule_date: $[int](/API_docs/types/int.html), send_as: $[InputPeer](/API_docs/types/InputPeer.html), quick_reply_shortcut: $[InputQuickReplyShortcut](/API_docs/types/InputQuickReplyShortcut.html), effect: $[long](/API_docs/types/long.html), \]) === [$Updates](/API_docs/types/Updates.html) +*** +

+$MadelineProto->[messages->sendPaidReaction](/API_docs/methods/messages.sendPaidReaction.html)(\[private: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), msg_id: $[int](/API_docs/types/int.html), count: $[int](/API_docs/types/int.html), \]) === [$Updates](/API_docs/types/Updates.html) + ***

$MadelineProto->[messages->sendQuickReplyMessages](/API_docs/methods/messages.sendQuickReplyMessages.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), shortcut_id: $[int](/API_docs/types/int.html), id: \[$[int](/API_docs/types/int.html)\], \]) === [$Updates](/API_docs/types/Updates.html) @@ -1977,7 +1981,7 @@ $MadelineProto->[messages->setBotShippingResults](/API_docs/methods/messages.set ***

-$MadelineProto->[messages->setChatAvailableReactions](/API_docs/methods/messages.setChatAvailableReactions.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), available_reactions: $[ChatReactions](/API_docs/types/ChatReactions.html), reactions_limit: $[int](/API_docs/types/int.html), \]) === [$Updates](/API_docs/types/Updates.html) +$MadelineProto->[messages->setChatAvailableReactions](/API_docs/methods/messages.setChatAvailableReactions.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), available_reactions: $[ChatReactions](/API_docs/types/ChatReactions.html), reactions_limit: $[int](/API_docs/types/int.html), paid_enabled: $[Bool](/API_docs/types/Bool.html), \]) === [$Updates](/API_docs/types/Updates.html) ***

@@ -2043,6 +2047,10 @@ $MadelineProto->[messages->toggleDialogPin](/API_docs/methods/messages.toggleDia

$MadelineProto->[messages->toggleNoForwards](/API_docs/methods/messages.toggleNoForwards.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), enabled: $[Bool](/API_docs/types/Bool.html), \]) === [$Updates](/API_docs/types/Updates.html) +*** +

+$MadelineProto->[messages->togglePaidReactionPrivacy](/API_docs/methods/messages.togglePaidReactionPrivacy.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), msg_id: $[int](/API_docs/types/int.html), private: $[Bool](/API_docs/types/Bool.html), \]) === [$Bool](/API_docs/types/Bool.html) + ***

$MadelineProto->[messages->togglePeerTranslations](/API_docs/methods/messages.togglePeerTranslations.html)(\[disabled: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), \]) === [$Bool](/API_docs/types/Bool.html) @@ -2115,6 +2123,10 @@ $MadelineProto->[payments->assignPlayMarketTransaction](/API_docs/methods/paymen

$MadelineProto->[payments->canPurchasePremium](/API_docs/methods/payments.canPurchasePremium.html)(\[purpose: $[InputStorePaymentPurpose](/API_docs/types/InputStorePaymentPurpose.html), \]) === [$Bool](/API_docs/types/Bool.html) +*** +

+$MadelineProto->[payments->changeStarsSubscription](/API_docs/methods/payments.changeStarsSubscription.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), subscription_id: $[string](/API_docs/types/string.html), canceled: $[Bool](/API_docs/types/Bool.html), \]) === [$Bool](/API_docs/types/Bool.html) + ***

$MadelineProto->[payments->checkGiftCode](/API_docs/methods/payments.checkGiftCode.html)(\[slug: $[string](/API_docs/types/string.html), \]) === [$payments.CheckedGiftCode](/API_docs/types/payments.CheckedGiftCode.html) @@ -2127,6 +2139,10 @@ $MadelineProto->[payments->clearSavedInfo](/API_docs/methods/payments.clearSaved

$MadelineProto->[payments->exportInvoice](/API_docs/methods/payments.exportInvoice.html)(\[invoice_media: $[InputMedia](/API_docs/types/InputMedia.html), \]) === [$payments.ExportedInvoice](/API_docs/types/payments.ExportedInvoice.html) +*** +

+$MadelineProto->[payments->fulfillStarsSubscription](/API_docs/methods/payments.fulfillStarsSubscription.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), subscription_id: $[string](/API_docs/types/string.html), \]) === [$Bool](/API_docs/types/Bool.html) + ***

$MadelineProto->[payments->getBankCardData](/API_docs/methods/payments.getBankCardData.html)(\[number: $[string](/API_docs/types/string.html), \]) === [$payments.BankCardData](/API_docs/types/payments.BankCardData.html) @@ -2171,13 +2187,17 @@ $MadelineProto->[payments->getStarsRevenueWithdrawalUrl](/API_docs/methods/payme

$MadelineProto->[payments->getStarsStatus](/API_docs/methods/payments.getStarsStatus.html)(\[peer: $[InputPeer](/API_docs/types/InputPeer.html), \]) === [$payments.StarsStatus](/API_docs/types/payments.StarsStatus.html) +*** +

+$MadelineProto->[payments->getStarsSubscriptions](/API_docs/methods/payments.getStarsSubscriptions.html)(\[missing_balance: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), offset: $[string](/API_docs/types/string.html), \]) === [$payments.StarsStatus](/API_docs/types/payments.StarsStatus.html) + ***

$MadelineProto->[payments->getStarsTopupOptions](/API_docs/methods/payments.getStarsTopupOptions.html)(\[\]) === [$Vector\_of\_StarsTopupOption](/API_docs/types/StarsTopupOption.html) ***

-$MadelineProto->[payments->getStarsTransactions](/API_docs/methods/payments.getStarsTransactions.html)(\[inbound: $[Bool](/API_docs/types/Bool.html), outbound: $[Bool](/API_docs/types/Bool.html), ascending: $[Bool](/API_docs/types/Bool.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), offset: $[string](/API_docs/types/string.html), limit: $[int](/API_docs/types/int.html), \]) === [$payments.StarsStatus](/API_docs/types/payments.StarsStatus.html) +$MadelineProto->[payments->getStarsTransactions](/API_docs/methods/payments.getStarsTransactions.html)(\[inbound: $[Bool](/API_docs/types/Bool.html), outbound: $[Bool](/API_docs/types/Bool.html), ascending: $[Bool](/API_docs/types/Bool.html), subscription_id: $[string](/API_docs/types/string.html), peer: $[InputPeer](/API_docs/types/InputPeer.html), offset: $[string](/API_docs/types/string.html), limit: $[int](/API_docs/types/int.html), \]) === [$payments.StarsStatus](/API_docs/types/payments.StarsStatus.html) ***

diff --git a/docs/API_docs/methods/channels.toggleSignatures.md b/docs/API_docs/methods/channels.toggleSignatures.md index 532e76150a..178fb4a51b 100644 --- a/docs/API_docs/methods/channels.toggleSignatures.md +++ b/docs/API_docs/methods/channels.toggleSignatures.md @@ -17,8 +17,9 @@ Enable/disable message signatures in channels | Name | Type | Description | Required | |----------|---------------|-------------|----------| +|signatures\_enabled|[Bool](/API_docs/types/Bool.html) | | Optional| +|profiles\_enabled|[Bool](/API_docs/types/Bool.html) | | Optional| |channel|[Username, chat ID, Update, Message or InputChannel](/API_docs/types/InputChannel.html) | Channel | Optional| -|enabled|[Bool](/API_docs/types/Bool.html) | Value | Yes| ### Return type: [Updates](/API_docs/types/Updates.html) @@ -38,6 +39,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Updates = $MadelineProto->channels->toggleSignatures(channel: $InputChannel, enabled: $Bool, ); +$Updates = $MadelineProto->channels->toggleSignatures(signatures_enabled: $Bool, profiles_enabled: $Bool, channel: $InputChannel, ); ``` diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 2e21dbbc48..96eaada625 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -1692,16 +1692,24 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * messages.requestMainWebView +* messages.sendPaidReaction + * messages.sendQuickReplyMessages * messages.toggleDialogFilterTags +* messages.togglePaidReactionPrivacy + * messages.updateSavedReactionTag * null-byte RLE decode: rleDecode * null-byte RLE encode: rleEncode +* payments.changeStarsSubscription + +* payments.fulfillStarsSubscription + * payments.getStarsGiftOptions * payments.getStarsRevenueAdsAccountUrl @@ -1712,6 +1720,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * payments.getStarsStatus +* payments.getStarsSubscriptions + * payments.getStarsTopupOptions * payments.getStarsTransactions diff --git a/docs/API_docs/methods/messages.exportChatInvite.md b/docs/API_docs/methods/messages.exportChatInvite.md index 326e6522a2..e577cde922 100644 --- a/docs/API_docs/methods/messages.exportChatInvite.md +++ b/docs/API_docs/methods/messages.exportChatInvite.md @@ -23,6 +23,7 @@ Export an invite link for a chat |expire\_date|[int](/API_docs/types/int.html) | Expiration date | Optional| |usage\_limit|[int](/API_docs/types/int.html) | Maximum number of users that can join using this link | Optional| |title|[string](/API_docs/types/string.html) | Description of the invite link, visible only to administrators | Optional| +|subscription\_pricing|[StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html) | | Optional| ### Return type: [ExportedChatInvite](/API_docs/types/ExportedChatInvite.html) @@ -42,6 +43,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(legacy_revoke_permanent: $Bool, request_needed: $Bool, peer: $InputPeer, expire_date: $int, usage_limit: $int, title: 'string', ); +$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(legacy_revoke_permanent: $Bool, request_needed: $Bool, peer: $InputPeer, expire_date: $int, usage_limit: $int, title: 'string', subscription_pricing: $StarsSubscriptionPricing, ); ``` diff --git a/docs/API_docs/methods/messages.getChatInviteImporters.md b/docs/API_docs/methods/messages.getChatInviteImporters.md index 5d72516b54..36f9f8a1d8 100644 --- a/docs/API_docs/methods/messages.getChatInviteImporters.md +++ b/docs/API_docs/methods/messages.getChatInviteImporters.md @@ -18,6 +18,7 @@ Get info about the users that joined the chat using a specific chat invite | Name | Type | Description | Required | |----------|---------------|-------------|----------| |requested|[Bool](/API_docs/types/Bool.html) | If set, only returns info about users with pending [join requests »](https://core.telegram.org/api/invites#join-requests) | Optional| +|subscription\_expired|[Bool](/API_docs/types/Bool.html) | | Optional| |peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Chat | Optional| |link|[string](/API_docs/types/string.html) | Invite link | Optional| |q|[string](/API_docs/types/string.html) | Search for a user in the pending [join requests »](https://core.telegram.org/api/invites#join-requests) list: only available when the `requested` flag is set, cannot be used together with a specific `link`. | Optional| @@ -43,6 +44,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_ChatInviteImporters = $MadelineProto->messages->getChatInviteImporters(requested: $Bool, peer: $InputPeer, link: 'string', q: 'string', offset_date: $int, offset_user: $InputUser, limit: $int, ); +$messages_ChatInviteImporters = $MadelineProto->messages->getChatInviteImporters(requested: $Bool, subscription_expired: $Bool, peer: $InputPeer, link: 'string', q: 'string', offset_date: $int, offset_user: $InputUser, limit: $int, ); ``` diff --git a/docs/API_docs/methods/messages.sendPaidReaction.md b/docs/API_docs/methods/messages.sendPaidReaction.md new file mode 100644 index 0000000000..47454b182e --- /dev/null +++ b/docs/API_docs/methods/messages.sendPaidReaction.md @@ -0,0 +1,43 @@ +--- +title: "messages.sendPaidReaction" +description: "messages.sendPaidReaction parameters, return type and example" +grand_parent: "Telegram RPC API" +parent: "Methods" +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +redirect_from: /API_docs/methods/messages_sendPaidReaction.html +--- +# Method: messages.sendPaidReaction +[Back to methods index](index.html) + + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|private|[Bool](/API_docs/types/Bool.html) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| +|msg\_id|[int](/API_docs/types/int.html) | Optional| +|count|[int](/API_docs/types/int.html) | Optional| + + +### Return type: [Updates](/API_docs/types/Updates.html) + +### Can bots use this method: **YES** + + +### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)): + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendPaidReaction(private: $Bool, peer: $InputPeer, msg_id: $int, count: $int, ); +``` + diff --git a/docs/API_docs/methods/messages.setChatAvailableReactions.md b/docs/API_docs/methods/messages.setChatAvailableReactions.md index 5b61499679..501d303b46 100644 --- a/docs/API_docs/methods/messages.setChatAvailableReactions.md +++ b/docs/API_docs/methods/messages.setChatAvailableReactions.md @@ -20,6 +20,7 @@ Change the set of [message reactions »](https://core.telegram.org/api/reactions |peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Group where to apply changes | Optional| |available\_reactions|[ChatReactions](/API_docs/types/ChatReactions.html) | Allowed reaction emojis | Yes| |reactions\_limit|[int](/API_docs/types/int.html) | | Optional| +|paid\_enabled|[Bool](/API_docs/types/Bool.html) | | Optional| ### Return type: [Updates](/API_docs/types/Updates.html) @@ -39,6 +40,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Updates = $MadelineProto->messages->setChatAvailableReactions(peer: $InputPeer, available_reactions: $ChatReactions, reactions_limit: $int, ); +$Updates = $MadelineProto->messages->setChatAvailableReactions(peer: $InputPeer, available_reactions: $ChatReactions, reactions_limit: $int, paid_enabled: $Bool, ); ``` diff --git a/docs/API_docs/methods/messages.togglePaidReactionPrivacy.md b/docs/API_docs/methods/messages.togglePaidReactionPrivacy.md new file mode 100644 index 0000000000..89e777fc04 --- /dev/null +++ b/docs/API_docs/methods/messages.togglePaidReactionPrivacy.md @@ -0,0 +1,42 @@ +--- +title: "messages.togglePaidReactionPrivacy" +description: "messages.togglePaidReactionPrivacy parameters, return type and example" +grand_parent: "Telegram RPC API" +parent: "Methods" +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +redirect_from: /API_docs/methods/messages_togglePaidReactionPrivacy.html +--- +# Method: messages.togglePaidReactionPrivacy +[Back to methods index](index.html) + + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| +|msg\_id|[int](/API_docs/types/int.html) | Optional| +|private|[Bool](/API_docs/types/Bool.html) | Yes| + + +### Return type: [Bool](/API_docs/types/Bool.html) + +### Can bots use this method: **YES** + + +### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)): + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->togglePaidReactionPrivacy(peer: $InputPeer, msg_id: $int, private: $Bool, ); +``` + diff --git a/docs/API_docs/methods/payments.changeStarsSubscription.md b/docs/API_docs/methods/payments.changeStarsSubscription.md new file mode 100644 index 0000000000..e67a11c0db --- /dev/null +++ b/docs/API_docs/methods/payments.changeStarsSubscription.md @@ -0,0 +1,42 @@ +--- +title: "payments.changeStarsSubscription" +description: "payments.changeStarsSubscription parameters, return type and example" +grand_parent: "Telegram RPC API" +parent: "Methods" +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +redirect_from: /API_docs/methods/payments_changeStarsSubscription.html +--- +# Method: payments.changeStarsSubscription +[Back to methods index](index.html) + + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| +|subscription\_id|[string](/API_docs/types/string.html) | Optional| +|canceled|[Bool](/API_docs/types/Bool.html) | Optional| + + +### Return type: [Bool](/API_docs/types/Bool.html) + +### Can bots use this method: **YES** + + +### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)): + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->payments->changeStarsSubscription(peer: $InputPeer, subscription_id: 'string', canceled: $Bool, ); +``` + diff --git a/docs/API_docs/methods/payments.fulfillStarsSubscription.md b/docs/API_docs/methods/payments.fulfillStarsSubscription.md new file mode 100644 index 0000000000..beced304d4 --- /dev/null +++ b/docs/API_docs/methods/payments.fulfillStarsSubscription.md @@ -0,0 +1,41 @@ +--- +title: "payments.fulfillStarsSubscription" +description: "payments.fulfillStarsSubscription parameters, return type and example" +grand_parent: "Telegram RPC API" +parent: "Methods" +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +redirect_from: /API_docs/methods/payments_fulfillStarsSubscription.html +--- +# Method: payments.fulfillStarsSubscription +[Back to methods index](index.html) + + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| +|subscription\_id|[string](/API_docs/types/string.html) | Optional| + + +### Return type: [Bool](/API_docs/types/Bool.html) + +### Can bots use this method: **YES** + + +### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)): + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->payments->fulfillStarsSubscription(peer: $InputPeer, subscription_id: 'string', ); +``` + diff --git a/docs/API_docs/methods/payments.getStarsSubscriptions.md b/docs/API_docs/methods/payments.getStarsSubscriptions.md new file mode 100644 index 0000000000..e5e31f4e91 --- /dev/null +++ b/docs/API_docs/methods/payments.getStarsSubscriptions.md @@ -0,0 +1,42 @@ +--- +title: "payments.getStarsSubscriptions" +description: "payments.getStarsSubscriptions parameters, return type and example" +grand_parent: "Telegram RPC API" +parent: "Methods" +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +redirect_from: /API_docs/methods/payments_getStarsSubscriptions.html +--- +# Method: payments.getStarsSubscriptions +[Back to methods index](index.html) + + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|missing\_balance|[Bool](/API_docs/types/Bool.html) | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| +|offset|[string](/API_docs/types/string.html) | Optional| + + +### Return type: [payments.StarsStatus](/API_docs/types/payments.StarsStatus.html) + +### Can bots use this method: **YES** + + +### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)): + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$payments_StarsStatus = $MadelineProto->payments->getStarsSubscriptions(missing_balance: $Bool, peer: $InputPeer, offset: 'string', ); +``` + diff --git a/docs/API_docs/methods/payments.getStarsTransactions.md b/docs/API_docs/methods/payments.getStarsTransactions.md index 6f74c4fe9b..f94678a737 100644 --- a/docs/API_docs/methods/payments.getStarsTransactions.md +++ b/docs/API_docs/methods/payments.getStarsTransactions.md @@ -18,6 +18,7 @@ redirect_from: /API_docs/methods/payments_getStarsTransactions.html |inbound|[Bool](/API_docs/types/Bool.html) | Optional| |outbound|[Bool](/API_docs/types/Bool.html) | Optional| |ascending|[Bool](/API_docs/types/Bool.html) | Optional| +|subscription\_id|[string](/API_docs/types/string.html) | Optional| |peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| |offset|[string](/API_docs/types/string.html) | Optional| |limit|[int](/API_docs/types/int.html) | Optional| @@ -40,6 +41,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$payments_StarsStatus = $MadelineProto->payments->getStarsTransactions(inbound: $Bool, outbound: $Bool, ascending: $Bool, peer: $InputPeer, offset: 'string', limit: $int, ); +$payments_StarsStatus = $MadelineProto->payments->getStarsTransactions(inbound: $Bool, outbound: $Bool, ascending: $Bool, subscription_id: 'string', peer: $InputPeer, offset: 'string', limit: $int, ); ``` diff --git a/docs/API_docs/types/ChannelAdminLogEventAction.md b/docs/API_docs/types/ChannelAdminLogEventAction.md index 267286345e..570f9fef12 100644 --- a/docs/API_docs/types/ChannelAdminLogEventAction.md +++ b/docs/API_docs/types/ChannelAdminLogEventAction.md @@ -107,6 +107,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [channelAdminLogEventActionChangeEmojiStickerSet](/API_docs/constructors/channelAdminLogEventActionChangeEmojiStickerSet.html) +[channelAdminLogEventActionToggleSignatureProfiles](/API_docs/constructors/channelAdminLogEventActionToggleSignatureProfiles.html) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/InputFile.md b/docs/API_docs/types/InputFile.md index 3b8bd0eaea..b2c6de875b 100644 --- a/docs/API_docs/types/InputFile.md +++ b/docs/API_docs/types/InputFile.md @@ -23,6 +23,8 @@ You can also use async streams, HTTP response objects, and [much more](https://d [inputFileBig](/API_docs/constructors/inputFileBig.html) +[inputFileStoryDocument](/API_docs/constructors/inputFileStoryDocument.html) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/InputInvoice.md b/docs/API_docs/types/InputInvoice.md index 5578148ffe..f450b45f86 100644 --- a/docs/API_docs/types/InputInvoice.md +++ b/docs/API_docs/types/InputInvoice.md @@ -19,6 +19,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [inputInvoiceStars](/API_docs/constructors/inputInvoiceStars.html) +[inputInvoiceChatInviteSubscription](/API_docs/constructors/inputInvoiceChatInviteSubscription.html) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/MessageReactor.md b/docs/API_docs/types/MessageReactor.md new file mode 100644 index 0000000000..fcb6bc0f7a --- /dev/null +++ b/docs/API_docs/types/MessageReactor.md @@ -0,0 +1,21 @@ +--- +title: MessageReactor +description: constructors and methods of type MessageReactor +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessageReactor +[Back to types index](index.html) + + + +### Possible values (constructors): + +[messageReactor](/API_docs/constructors/messageReactor.html) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Reaction.md b/docs/API_docs/types/Reaction.md index 0bfa61cabf..725c317043 100644 --- a/docs/API_docs/types/Reaction.md +++ b/docs/API_docs/types/Reaction.md @@ -17,6 +17,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [reactionCustomEmoji](/API_docs/constructors/reactionCustomEmoji.html) +[reactionPaid](/API_docs/constructors/reactionPaid.html) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/StarsSubscription.md b/docs/API_docs/types/StarsSubscription.md new file mode 100644 index 0000000000..96965a00d3 --- /dev/null +++ b/docs/API_docs/types/StarsSubscription.md @@ -0,0 +1,21 @@ +--- +title: StarsSubscription +description: constructors and methods of type StarsSubscription +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: StarsSubscription +[Back to types index](index.html) + + + +### Possible values (constructors): + +[starsSubscription](/API_docs/constructors/starsSubscription.html) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/StarsSubscriptionPricing.md b/docs/API_docs/types/StarsSubscriptionPricing.md new file mode 100644 index 0000000000..b799eb4592 --- /dev/null +++ b/docs/API_docs/types/StarsSubscriptionPricing.md @@ -0,0 +1,21 @@ +--- +title: StarsSubscriptionPricing +description: constructors and methods of type StarsSubscriptionPricing +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: StarsSubscriptionPricing +[Back to types index](index.html) + + + +### Possible values (constructors): + +[starsSubscriptionPricing](/API_docs/constructors/starsSubscriptionPricing.html) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/Updates.md b/docs/API_docs/types/Updates.md index 9cfc2f6c73..c90b7c22e2 100644 --- a/docs/API_docs/types/Updates.md +++ b/docs/API_docs/types/Updates.md @@ -134,6 +134,8 @@ $message = $MadelineProto->extractMessageId($Updates); [$MadelineProto->messages->deleteFactCheck](/API_docs/methods/messages.deleteFactCheck.html) +[$MadelineProto->messages->sendPaidReaction](/API_docs/methods/messages.sendPaidReaction.html) + [$MadelineProto->channels->createChannel](/API_docs/methods/channels.createChannel.html) [$MadelineProto->channels->editAdmin](/API_docs/methods/channels.editAdmin.html) diff --git a/docs/API_docs/types/index.md b/docs/API_docs/types/index.md index 70e122125f..4e00d76322 100644 --- a/docs/API_docs/types/index.md +++ b/docs/API_docs/types/index.md @@ -399,6 +399,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [MessageReactions](/API_docs/types/MessageReactions.html) +[MessageReactor](/API_docs/types/MessageReactor.html) + [MessageReplies](/API_docs/types/MessageReplies.html) [MessageReplyHeader](/API_docs/types/MessageReplyHeader.html) @@ -577,6 +579,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [StarsRevenueStatus](/API_docs/types/StarsRevenueStatus.html) +[StarsSubscription](/API_docs/types/StarsSubscription.html) + +[StarsSubscriptionPricing](/API_docs/types/StarsSubscriptionPricing.html) + [StarsTopupOption](/API_docs/types/StarsTopupOption.html) [StarsTransaction](/API_docs/types/StarsTransaction.html) diff --git a/docs/API_docs/types/payments.StarsStatus.md b/docs/API_docs/types/payments.StarsStatus.md index 1f37e9cf25..0d7b2e493a 100644 --- a/docs/API_docs/types/payments.StarsStatus.md +++ b/docs/API_docs/types/payments.StarsStatus.md @@ -24,5 +24,7 @@ redirect_from: /API_docs/types/payments_StarsStatus.html [$MadelineProto->payments->getStarsTransactionsByID](/API_docs/methods/payments.getStarsTransactionsByID.html) +[$MadelineProto->payments->getStarsSubscriptions](/API_docs/methods/payments.getStarsSubscriptions.html) + diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md index 2599b63cc7..5e58004407 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -8,7 +8,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png There are simplifications for many, if not all of, these methods. -A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 185)](https://docs.madelineproto.xyz/API_docs/). +A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 186)](https://docs.madelineproto.xyz/API_docs/). [Now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html) diff --git a/docs/index.md b/docs/index.md index a2ab50903f..c5f2943e7b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1156,16 +1156,21 @@ Some of MadelineProto's core components are also available as separate, standalo * messages.getSavedReactionTags * messages.reorderQuickReplies * messages.requestMainWebView + * messages.sendPaidReaction * messages.sendQuickReplyMessages * messages.toggleDialogFilterTags + * messages.togglePaidReactionPrivacy * messages.updateSavedReactionTag * null-byte RLE decode: rleDecode * null-byte RLE encode: rleEncode + * payments.changeStarsSubscription + * payments.fulfillStarsSubscription * payments.getStarsGiftOptions * payments.getStarsRevenueAdsAccountUrl * payments.getStarsRevenueStats * payments.getStarsRevenueWithdrawalUrl * payments.getStarsStatus + * payments.getStarsSubscriptions * payments.getStarsTopupOptions * payments.getStarsTransactions * payments.getStarsTransactionsByID