diff --git a/.github/dev.yml b/.github/dev.yml
index ec24e3c..4624127 100644
--- a/.github/dev.yml
+++ b/.github/dev.yml
@@ -1,7 +1,7 @@
pr: none
trigger: [ master ]
-name: 3.6.1-dev.$(Rev:r)
+name: 3.6.2-dev.$(Rev:r)
pool:
vmImage: ubuntu-latest
diff --git a/src/Client.Helpers.cs b/src/Client.Helpers.cs
index e7f0774..4bed1ae 100644
--- a/src/Client.Helpers.cs
+++ b/src/Client.Helpers.cs
@@ -505,7 +505,7 @@ namespace WTelegram
/// first letters used to search for in participants names
(default values crafted with ♥ to find most latin and cyrillic names)
/// second (and further) letters used to search for in participants names
/// Can be used to abort the work of this method
- /// Field count indicates the total count of members. Field participants contains those that were successfully fetched
+ /// Field count indicates the total count of members. Field participants contains those that were successfully fetched
/// ⚠ This method can take a few minutes to complete on big broadcast channels. It likely won't be able to obtain the full total count of members
public async Task Channels_GetAllParticipants(InputChannelBase channel, bool includeKickBan = false, string alphabet1 = "АБCДЕЄЖФГHИІJКЛМНОПQРСТУВWХЦЧШЩЫЮЯЗ", string alphabet2 = "АCЕHИJЛМНОРСТУВWЫ", CancellationToken cancellationToken = default)
{
diff --git a/src/TL.Helpers.cs b/src/TL.Helpers.cs
index 8d2636c..6907426 100644
--- a/src/TL.Helpers.cs
+++ b/src/TL.Helpers.cs
@@ -27,7 +27,7 @@ namespace TL
}
partial class InputPeerChat
{
- /// ⚠ Only for small private Chat. Chat groups of type Channel must use InputPeerChannel. See Terminology in README
+ /// ⚠ This type is only for basic Chat. See Terminology in the README to understand what this means
Chat groups of type Channel must use .
/// Chat identifier
public InputPeerChat(long chat_id) => this.chat_id = chat_id;
internal InputPeerChat() { }
@@ -207,6 +207,7 @@ namespace TL
{
/// Is this chat among current user active chats?
public abstract bool IsActive { get; }
+ /// Is this chat a broadcast channel?
public virtual bool IsChannel => false;
public bool IsGroup => !IsChannel;
public virtual string MainUsername => null;
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index 130f26f..4068515 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -774,6 +774,7 @@ namespace TL
[IfFlag(30)] public EmojiStatus emoji_status;
/// Additional usernames
[IfFlag(32)] public Username[] usernames;
+ /// ID of the maximum read story.
[IfFlag(37)] public int stories_max_id;
[IfFlag(40)] public PeerColor color;
[IfFlag(41)] public PeerColor profile_color;
@@ -844,6 +845,7 @@ namespace TL
has_usernames = 0x1,
/// Whether we can edit the profile picture, name, about text and description of this bot because we own it.
bot_can_edit = 0x2,
+ /// Whether we marked this user as a close friend, see here » for more info
close_friend = 0x4,
/// Whether we have hidden » all active stories of this user.
stories_hidden = 0x8,
@@ -1025,6 +1027,7 @@ namespace TL
[IfFlag(17)] public int participants_count;
/// Additional usernames
[IfFlag(32)] public Username[] usernames;
+ /// ID of the maximum read story.
[IfFlag(36)] public int stories_max_id;
[IfFlag(39)] public PeerColor color;
@@ -1032,7 +1035,7 @@ namespace TL
{
/// Whether the current user is the creator of this channel
creator = 0x1,
- /// Whether the current user has left this channel
+ /// Whether the current user has left or is not a member of this channel
left = 0x4,
/// Is this a channel?
broadcast = 0x20,
@@ -1088,7 +1091,9 @@ namespace TL
{
/// Field has a value
has_usernames = 0x1,
+ /// Whether we have hidden all stories posted by this channel ».
stories_hidden = 0x2,
+ /// If set, indicates that the stories_hidden flag was not populated, and its value must cannot be relied on; use the previously cached value, or re-fetch the constructor using Channels_GetChannels to obtain the latest value of the stories_hidden flag.
stories_hidden_min = 0x4,
stories_unavailable = 0x8,
/// Field has a value
@@ -1428,6 +1433,7 @@ namespace TL
translations_disabled = 0x8,
/// Field has a value
has_stories = 0x10,
+ /// Whether this user has some pinned stories.
stories_pinned_available = 0x20,
view_forum_as_messages = 0x40,
}
@@ -1968,20 +1974,24 @@ namespace TL
/// The emoji, for now 🏀, 🎲 and 🎯 are supported
public string emoticon;
}
- /// See
+ /// Represents a forwarded story or a story mention. See
[TLDef(0x68CB6283)]
public class MessageMediaStory : MessageMedia
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
+ /// Peer that posted the story.
public Peer peer;
+ /// Story ID
public int id;
+ /// The story itself, if absent fetch it using Stories_GetStoriesByID and the peer/id parameters specified above.
[IfFlag(0)] public StoryItemBase story;
[Flags] public enum Flags : uint
{
/// Field has a value
has_story = 0x1,
+ /// If set, indicates that this someone has mentioned us in this story (i.e. by tagging us in the description) or vice versa, we have mentioned the other peer (if the message is outgoing).
via_mention = 0x2,
}
}
@@ -2197,6 +2207,7 @@ namespace TL
attach_menu = 0x2,
/// Field has a value
has_app = 0x4,
+ /// We have allowed the bot to send us messages using Bots_AllowSendMessage.
from_request = 0x8,
}
}
@@ -3065,6 +3076,7 @@ namespace TL
[IfFlag(19)] public PremiumGiftOption[] premium_gifts;
/// Wallpaper to use in the private chat with the user.
[IfFlag(24)] public WallPaperBase wallpaper;
+ /// Active stories »
[IfFlag(25)] public PeerStories stories;
[Flags] public enum Flags : uint
@@ -3115,7 +3127,9 @@ namespace TL
has_wallpaper = 0x1000000,
/// Field has a value
has_stories = 0x2000000,
+ /// Whether this user has some pinned stories.
stories_pinned_available = 0x4000000,
+ /// Whether we've blocked this user, preventing them from seeing our stories ».
blocked_my_stories_from = 0x8000000,
wallpaper_overridden = 0x10000000,
}
@@ -8223,7 +8237,7 @@ namespace TL
[IfFlag(1)] public string next_offset;
/// Shown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter.
[IfFlag(2)] public InlineBotSwitchPM switch_pm;
- /// Shown as a button on top of the remaining inline result list; if clicked, opens the specified bot mini app.
+ /// Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app.
[IfFlag(3)] public InlineBotWebView switch_webview;
/// The results
public BotInlineResultBase[] results;
@@ -10736,7 +10750,7 @@ namespace TL
[Flags] public enum Flags : uint
{
- /// Join events
+ /// Join events, including joins using invite links and join requests.
join = 0x1,
/// Leave events
leave = 0x2,
@@ -10754,9 +10768,9 @@ namespace TL
promote = 0x80,
/// Admin demotion events
demote = 0x100,
- /// Info change events (when about, linked chat, location, photo, stickerset, title or username data of a channel gets modified)
+ /// Info change events (when about, linked chat, location, photo, stickerset, title or username, slowmode, history TTL settings of a channel gets modified)
info = 0x200,
- /// Settings change events (invites, hidden prehistory, signatures, default banned rights)
+ /// Settings change events (invites, hidden prehistory, signatures, default banned rights, forum toggle events)
settings = 0x400,
/// Message pin events
pinned = 0x800,
@@ -12575,14 +12589,17 @@ namespace TL
has_settings = 0x2,
}
}
- /// See
+ /// Webpage preview of a Telegram story See
[TLDef(0x2E94C3E7)]
public class WebPageAttributeStory : WebPageAttribute
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
+ /// Peer that posted the story
public Peer peer;
+ /// Story ID
public int id;
+ /// May contain the story, if not the story should be fetched when and if needed using Stories_GetStoriesByID with the above id and peer.
[IfFlag(0)] public StoryItemBase story;
[Flags] public enum Flags : uint
@@ -14845,7 +14862,7 @@ namespace TL
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
- /// Total number of topics matching query; may be less than the topics contained in topics, in which case pagination is required.
+ /// Total number of topics matching query; may be more than the topics contained in topics, in which case pagination is required.
public int count;
/// Forum topics
public ForumTopicBase[] topics;
@@ -14860,7 +14877,7 @@ namespace TL
[Flags] public enum Flags : uint
{
- /// Whether the returned topics are ordered by creation date; if set, pagination by next_offset should use .date; otherwise topics are ordered by the last message date, so paginate by the date of the referenced by .top_message.
+ /// Whether the returned topics are ordered by creation date; if set, pagination by offset_date should use .date; otherwise topics are ordered by the last message date, so paginate by the date of the referenced by .top_message.
order_by_create_date = 0x1,
}
/// returns a or for the given Peer
@@ -15078,28 +15095,28 @@ namespace TL
public JsonObject config;
}
- /// Used to fetch information about a named bot mini app See Derived classes: ,
+ /// Used to fetch information about a named Mini App See Derived classes: ,
public abstract class InputBotApp : IObject { }
- /// Used to fetch information about a named bot mini app by its ID See
+ /// Used to fetch information about a named Mini App by its ID See
[TLDef(0xA920BD7A)]
public class InputBotAppID : InputBotApp
{
- /// named bot mini app ID.
+ /// named Mini App ID.
public long id;
/// ⚠ REQUIRED FIELD. See how to obtain it
Access hash, obtained from the .
public long access_hash;
}
- /// Used to fetch information about a named bot mini app by its short name See
+ /// Used to fetch information about a named Mini App by its short name See
[TLDef(0x908C0407)]
public class InputBotAppShortName : InputBotApp
{
/// ID of the bot that owns the bot mini app
public InputUserBase bot_id;
- /// Short name, obtained from a named bot mini app deep link
+ /// Short name, obtained from a named Mini App deep link
public string short_name;
}
- /// Contains information about a named bot mini app. See
+ /// Contains information about a named Mini App. See
/// a value means botAppNotModified
[TLDef(0x95FCD1D6)]
public class BotApp : IObject
@@ -15110,7 +15127,7 @@ namespace TL
public long id;
/// bot mini app access hash
public long access_hash;
- /// bot mini app short name, used to generate named bot mini app deep links.
+ /// bot mini app short name, used to generate named Mini App deep links.
public string short_name;
/// bot mini app title.
public string title;
@@ -15130,7 +15147,7 @@ namespace TL
}
}
- /// Contains information about a named bot mini app See
+ /// Contains information about a named Mini App See
[TLDef(0xEB50ADF5)]
public class Messages_BotApp : IObject
{
@@ -15149,9 +15166,9 @@ namespace TL
}
}
- /// Contains the link that must be used to open a named bot mini app. See Derived classes:
+ /// Contains the link that must be used to open a named Mini App. See Derived classes:
public abstract class AppWebViewResult : IObject { }
- /// Contains the link that must be used to open a named bot mini app. See
+ /// Contains the link that must be used to open a named Mini App. See
[TLDef(0x3C1B4F0D)]
public class AppWebViewResultUrl : AppWebViewResult
{
@@ -15159,7 +15176,7 @@ namespace TL
public string url;
}
- /// Specifies a bot mini app button, shown on top of the inline query results list. See
+ /// Specifies an inline mode mini app button, shown on top of the inline query results list. See
[TLDef(0xB57295D5)]
public class InlineBotWebView : IObject
{
@@ -15405,6 +15422,7 @@ namespace TL
[IfFlag(2)] public int forwards_count;
/// All reactions sent to this story
[IfFlag(3)] public ReactionCount[] reactions;
+ /// Number of reactions added to the story
[IfFlag(4)] public int reactions_count;
/// User IDs of some recent viewers of the story
[IfFlag(0)] public long[] recent_viewers;
@@ -15454,6 +15472,7 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Whether this story can only be viewed by our close friends, see here » for more info
close_friends = 0x100,
}
@@ -15500,15 +15519,19 @@ namespace TL
has_views = 0x8,
/// Whether this story is pinned on the user's profile
pinned = 0x20,
- /// Whether this story is public
+ /// Whether this story is public and can be viewed by everyone
public_ = 0x80,
+ /// Whether this story can only be viewed by our close friends, see here » for more info
close_friends = 0x100,
+ /// Full information about this story was omitted for space and performance reasons; use Stories_GetStoriesByID to fetch full info about this story when and if needed.
min = 0x200,
/// Whether this story is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).
noforwards = 0x400,
/// Indicates whether the story was edited.
edited = 0x800,
+ /// Whether this story can only be viewed by our contacts
contacts = 0x1000,
+ /// Whether this story can only be viewed by a select list of our contacts
selected_contacts = 0x2000,
/// Field has a value
has_media_areas = 0x4000,
@@ -15600,7 +15623,9 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Whether we have completely blocked this user, including from viewing more of our stories.
blocked = 0x1,
+ /// Whether we have blocked this user from viewing more of our stories.
blocked_my_stories_from = 0x2,
/// Field has a value
has_reaction = 0x4,
@@ -15615,6 +15640,7 @@ namespace TL
public Flags flags;
/// Total number of results that can be fetched
public int count;
+ /// Number of reactions that were added to the story
public int reactions_count;
/// Story view date and reaction information
public StoryView[] views;
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index db99dd6..c0aff4c 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -1436,7 +1436,7 @@ namespace TL
limit = limit,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns the list of messages by their IDs. See [bots: ✓]
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns the list of messages by their IDs. See [bots: ✓]
/// Message ID list
public static Task Messages_GetMessages(this Client client, params InputMessage[] id)
=> client.Invoke(new Messages_GetMessages
@@ -1486,8 +1486,8 @@ namespace TL
hash = hash,
});
- /// Returns found messages See Possible codes: 400,403 (details)
- /// User or chat, histories with which are searched, or for global search
+ /// Search for messages. See Possible codes: 400,403 (details)
+ /// User or chat, histories with which are searched, or to search in all private chats and normal groups (not channels) ». Use Messages_SearchGlobal to search globally in all chats, groups, supergroups and channels.
/// Text search request
/// Only return messages sent by the specified user ID
/// Thread ID
@@ -1546,7 +1546,7 @@ namespace TL
max_date = max_date.GetValueOrDefault(),
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes messages by their identifiers. See [bots: ✓] Possible codes: 400,403 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes messages by their identifiers. See [bots: ✓] Possible codes: 400,403 (details)
/// Whether to delete messages for all participants of the chat
/// Message ID list
public static Task Messages_DeleteMessages(this Client client, int[] id, bool revoke = false)
@@ -1556,7 +1556,7 @@ namespace TL
id = id,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Confirms receipt of messages by a client, cancels PUSH-notification sending. See
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Confirms receipt of messages by a client, cancels PUSH-notification sending. See
/// Maximum message ID available in a client.
public static Task Messages_ReceivedMessages(this Client client, int max_id = default)
=> client.Invoke(new Messages_ReceivedMessages
@@ -1693,7 +1693,7 @@ namespace TL
message = message,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns chat basic info on their IDs. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns chat basic info on their IDs. See [bots: ✓] Possible codes: 400 (details)
/// List of chat IDs
public static Task Messages_GetChats(this Client client, params long[] id)
=> client.Invoke(new Messages_GetChats
@@ -1701,7 +1701,7 @@ namespace TL
id = id,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Get full info about a basic group. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Get full info about a basic group. See [bots: ✓] Possible codes: 400 (details)
/// Basic group ID.
public static Task Messages_GetFullChat(this Client client, long chat_id)
=> client.Invoke(new Messages_GetFullChat
@@ -1709,7 +1709,7 @@ namespace TL
chat_id = chat_id,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat name and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat name and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
/// Chat ID
/// New chat name, different from the old one
public static Task Messages_EditChatTitle(this Client client, long chat_id, string title)
@@ -1719,7 +1719,7 @@ namespace TL
title = title,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat photo and sends a service message on it See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat photo and sends a service message on it See [bots: ✓] Possible codes: 400 (details)
/// Chat ID
/// Photo to be set
public static Task Messages_EditChatPhoto(this Client client, long chat_id, InputChatPhotoBase photo)
@@ -1729,7 +1729,7 @@ namespace TL
photo = photo,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Adds a user to a chat and sends a service message on it. See Possible codes: 400,403 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Adds a user to a chat and sends a service message on it. See Possible codes: 400,403 (details)
/// Chat ID
/// User ID to be added
/// Number of last messages to be forwarded
@@ -1741,7 +1741,7 @@ namespace TL
fwd_limit = fwd_limit,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes a user from a chat and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes a user from a chat and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
/// Remove the entire chat history of the specified user in this chat.
/// Chat ID
/// User ID to be deleted
@@ -1888,7 +1888,7 @@ namespace TL
peer = peer,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Notifies the sender about the recipient having listened a voice message or watched a video. See
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Notifies the sender about the recipient having listened a voice message or watched a video. See
/// Message ID list
public static Task Messages_ReadMessageContents(this Client client, params int[] id)
=> client.Invoke(new Messages_ReadMessageContents
@@ -1945,7 +1945,7 @@ namespace TL
title = title,
});
- /// Check the validity of a chat invite link and get basic info about it See Possible codes: 400,406,500 (details)
+ /// Check the validity of a chat invite link and get basic info about it See Possible codes: 400,406 (details)
/// Invite hash from chat invite deep link ».
public static Task Messages_CheckChatInvite(this Client client, string hash)
=> client.Invoke(new Messages_CheckChatInvite
@@ -2016,7 +2016,7 @@ namespace TL
increment = increment,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Make a user admin in a basic group. See Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Make a user admin in a basic group. See Possible codes: 400 (details)
/// The ID of the group
/// The user to make admin
/// Whether to make them admin
@@ -2028,7 +2028,7 @@ namespace TL
is_admin = is_admin,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Turn a basic group into a supergroup See Possible codes: 400,403,500 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Turn a basic group into a supergroup See Possible codes: 400,403,500 (details)
/// Basic group to migrate
public static Task Messages_MigrateChat(this Client client, long chat_id)
=> client.Invoke(new Messages_MigrateChat
@@ -2128,7 +2128,7 @@ namespace TL
/// The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
/// Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.
/// If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter.
- /// If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified bot mini app.
+ /// If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified inline mode mini app.
public static Task Messages_SetInlineBotResults(this Client client, long query_id, InputBotInlineResultBase[] results, int cache_time, string next_offset = null, InlineBotSwitchPM switch_pm = null, InlineBotWebView switch_webview = null, bool gallery = false, bool private_ = false)
=> client.Invoke(new Messages_SetInlineBotResults
{
@@ -2967,7 +2967,7 @@ namespace TL
top_msg_id = top_msg_id.GetValueOrDefault(),
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Delete a chat See Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Delete a chat See Possible codes: 400 (details)
/// Chat ID
public static Task Messages_DeleteChat(this Client client, long chat_id)
=> client.Invoke(new Messages_DeleteChat
@@ -3436,10 +3436,10 @@ namespace TL
/// Open a bot mini app. See
/// Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by Messages_GetInlineBotResults.
- /// Set this flag if opening the Mini App from the installed side menu entry » or from a startapp link ».
+ /// Set this flag if opening the Mini App from the installed side menu entry » or from a Mini App link ».
/// Bot that owns the mini app
/// Web app URL, if opening from a keyboard button or inline result
- /// Start parameter, if opening from a startapp link ».
+ /// Start parameter, if opening from a Mini App link ».
/// Theme parameters »
/// Short name of the application; 0-64 English letters, digits, and underscores
public static Task Messages_RequestSimpleWebView(this Client client, InputUserBase bot, string platform, DataJSON theme_params = null, string url = null, string start_param = null, bool from_switch_webview = false, bool from_side_menu = false)
@@ -3453,7 +3453,7 @@ namespace TL
platform = platform,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Terminate webview interaction started with Messages_RequestWebView, sending the specified message to the chat on behalf of the user. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Terminate webview interaction started with Messages_RequestWebView, sending the specified message to the chat on behalf of the user. See [bots: ✓] Possible codes: 400 (details)
/// Webview interaction ID obtained from Messages_RequestWebView
/// Message to send
public static Task Messages_SendWebViewResultMessage(this Client client, string bot_query_id, InputBotInlineResultBase result)
@@ -3652,8 +3652,8 @@ namespace TL
peer = peer,
});
- /// Obtain information about a named bot mini app See Possible codes: 400 (details)
- /// Bot app information obtained from a named bot mini app deep link ».
+ /// Obtain information about a named Mini App See Possible codes: 400 (details)
+ /// Bot app information obtained from a named Mini App deep link ».
/// Hash for pagination, for more info click here
public static Task Messages_GetBotApp(this Client client, InputBotApp app, long hash = default)
=> client.Invoke(new Messages_GetBotApp
@@ -3662,11 +3662,11 @@ namespace TL
hash = hash,
});
- /// Open a bot mini app from a named bot mini app deep link, sending over user information after user confirmation. See
- /// Set this flag if the bot is asking permission to send messages to the user as specified in the named bot mini app deep link docs, and the user agreed.
+ /// Open a bot mini app from a named Mini App deep link, sending over user information after user confirmation. See
+ /// Set this flag if the bot is asking permission to send messages to the user as specified in the named Mini App deep link docs, and the user agreed.
/// If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead.
- /// The app obtained by invoking Messages_GetBotApp as specified in the named bot mini app deep link docs.
- /// If the startapp query string parameter is present in the named bot mini app deep link, pass it to start_param.
+ /// The app obtained by invoking Messages_GetBotApp as specified in the named Mini App deep link docs.
+ /// If the startapp query string parameter is present in the named Mini App deep link, pass it to start_param.
/// Theme parameters »
/// Short name of the application; 0-64 English letters, digits, and underscores
public static Task Messages_RequestAppWebView(this Client client, InputPeer peer, InputBotApp app, string platform, string start_param = null, DataJSON theme_params = null, bool write_allowed = false)
@@ -3785,7 +3785,7 @@ namespace TL
/// Returns the list of user photos. See [bots: ✓] Possible codes: 400 (details)
/// User ID
/// Number of list elements to be skipped
- /// If a positive value was transferred, the method will return only photos with IDs less than the set one
+ /// If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when refetching file references », as in conjuction with limit=1 and offset=-1 the object with the id specified in max_id can be fetched.
/// Number of list elements to be returned
public static Task Photos_GetUserPhotos(this Client client, InputUserBase user_id, int offset = default, long max_id = default, int limit = int.MaxValue)
=> client.Invoke(new Photos_GetUserPhotos
@@ -4194,7 +4194,7 @@ namespace TL
channel = channel,
});
- /// Create a supergroup/channel. See Possible codes: 400,406 (details)
+ /// Create a supergroup/channel. See Possible codes: 400,406,500 (details)
/// Whether to create a channel
/// Whether to create a supergroup
/// Whether the supergroup is being created to import messages from a foreign chat service using Messages_InitHistoryImport
@@ -4601,10 +4601,10 @@ namespace TL
/// Get topics of a forum See Possible codes: 400 (details)
/// Supergroup
/// Search query
- /// Offsets for pagination, for more info click here
- /// Offsets for pagination, for more info click here
- /// Offsets for pagination, for more info click here
- /// Maximum number of results to return, see pagination
+ /// Offsets for pagination, for more info click here, date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic.
+ /// Offsets for pagination, for more info click here, ID of the last message of the last found topic (or initially 0).
+ /// Offsets for pagination, for more info click here, ID of the last found topic (or initially 0).
+ /// Maximum number of results to return, see pagination. For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit.
public static Task Channels_GetForumTopics(this Client client, InputChannelBase channel, DateTime offset_date = default, int offset_id = default, int offset_topic = default, int limit = int.MaxValue, string q = null)
=> client.Invoke(new Channels_GetForumTopics
{
@@ -4669,7 +4669,7 @@ namespace TL
});
/// Reorder pinned forum topics See [bots: ✓]
- /// If set, topics pinned server-side but not present in the order field will be unpinned.
+ /// If not set, the order of only the topics present both server-side and in order will be changed (i.e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them).
If set, the entire server-side pinned topic list will be replaced with order (i.e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them)
/// Supergroup ID
/// Topic IDs »
public static Task Channels_ReorderPinnedForumTopics(this Client client, InputChannelBase channel, int[] order, bool force = false)
@@ -5936,6 +5936,7 @@ namespace TL
/// Obtain the list of users that have viewed a specific story we posted See Possible codes: 400 (details)
/// Whether to only fetch view reaction/views made by our contacts
+ /// Whether to return info about users that reacted to the story (i.e. if set, the server will also sort results based on the presence of a reaction, after sorting it by date as usual).
/// Peer where the story was posted
/// Search for specific peers
/// Story ID