From e20d4d715c3839b3a9c26ce513494153af5db8ad Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Sat, 12 Aug 2023 15:03:09 +0200 Subject: [PATCH] Updated Examples projects --- .github/dev.yml | 2 +- .github/release.yml | 1 + Examples/ASPnet_webapp.zip | Bin 4867 -> 4873 bytes Examples/WinForms_app.zip | Bin 10502 -> 10505 bytes src/TL.SchemaFuncs.cs | 40 ++++++++++++++++++------------------- 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/dev.yml b/.github/dev.yml index 575c2b5..7e13821 100644 --- a/.github/dev.yml +++ b/.github/dev.yml @@ -2,7 +2,7 @@ trigger: - master -name: 3.5.2-dev.$(Rev:r) +name: 3.5.4-dev.$(Rev:r) pool: vmImage: ubuntu-latest diff --git a/.github/release.yml b/.github/release.yml index 352507d..b9e21be 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -8,6 +8,7 @@ pool: variables: buildConfiguration: 'Release' + releaseNotes: $[replace(variables['releaseNotes'], '"', '''''')] stages: - stage: publish diff --git a/Examples/ASPnet_webapp.zip b/Examples/ASPnet_webapp.zip index 3b1ee95a88fb7a779ff9be0f24cde8563fde6e16..f1183ce78ecf09623125f173992bddcbfe0defdd 100644 GIT binary patch delta 524 zcmZox>r~?l@MdNaVE}=Nr99yq`BpNr7?ksbPu|UFD+pppL~$F$F)=XgWno}2pS+M; zYVt9Dh0V@PflPvYCEJ!}ey$Oa`2XiOJII{L0s<17_p{t%6$F{(pVjBJ5@_yMAT|N& zRGxf_g?I8jE`fT-{|0B+dm68J-F0d0cJeC9eH`jDcj9x8FS)wEmeei0*mUBlwavMQ z`{exfm139W@*tY@ZO zVl(#*U62r#^w2WcPHN7|q$LX-KR@pYid@Rtcfv71NGD{|JL4ZVik*RrH(V->b&@=H zZo#@Mr=G8i;F@myTv}?*{tn*yv|F!vH@9(XGqHd?F?lPmBflTRgMCtGZ!*Tjy#dja z83iOK%klk!1e6TFuVI7U|6UoO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HgY(c6oTC_opGfH~H}b`g_~5Ot_d0*h_~Z zDo9oC!=c1&0He;uduUKL;44?HuG6g z>GJB;o7lah8v-L-slbVy>+u<3+RRz-*coSrG?v|?Z^L_9DB6o!%#k;+UEz~C> zmXjWL1?C~2YwM*I)TtNC~j90OOKX7S~XaaKAb%S&H6uH2loYHz(S<`hZgS^{M!$jj-&`JD`UDf-=zn_MN2x; zGO_=IbbqK1PDx6D7R-COLQ3&4FN9slyo(~zSast(p?tVJDKQ#%oRTyIw;*LnlmC5s zO6wg!7fA^YcqO=%LCB&1k(cm^AeZnKab#_3jhEB diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index a8df2b4..6025b6a 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -1159,7 +1159,7 @@ namespace TL id = id, }); - /// Returns extended user info by ID. See [bots: ✓] Possible codes: 400 (details) + /// Returns extended user info by ID. See [bots: ✓] Possible codes: 400,500 (details) /// User ID public static Task Users_GetFullUser(this Client client, InputUserBase id) => client.Invoke(new Users_GetFullUser @@ -1834,7 +1834,7 @@ namespace TL file = file, }); - /// Sends a service message to a secret chat. See Possible codes: 400,403 (details) + /// Sends a service message to a secret chat. See Possible codes: 400,403,500 (details) /// Secret chat ID /// Unique client message ID required to prevent message resending You can use /// TL-serialization of type, encrypted with a key generated during chat initialization @@ -1846,7 +1846,7 @@ namespace TL data = data, }); - /// Confirms receipt of messages in a secret chat by client, cancels push notifications.
The method returns a list of random_ids of messages for which push notifications were cancelled. See Possible codes: 400 (details)
+ /// Confirms receipt of messages in a secret chat by client, cancels push notifications.
The method returns a list of random_ids of messages for which push notifications were cancelled. See Possible codes: 400,500 (details)
/// Maximum qts value available at the client public static Task Messages_ReceivedQueue(this Client client, int max_qts) => client.Invoke(new Messages_ReceivedQueue @@ -1919,7 +1919,7 @@ namespace TL title = title, }); - /// Check the validity of a chat invite link and get basic info about it See Possible codes: 400,406 (details) + /// Check the validity of a chat invite link and get basic info about it See Possible codes: 400,406,500 (details) /// Invite hash from chat invite deep link ». public static Task Messages_CheckChatInvite(this Client client, string hash) => client.Invoke(new Messages_CheckChatInvite @@ -2461,7 +2461,7 @@ namespace TL error = error, }); - /// Upload a file and associate it to a chat (without actually sending it to the chat) See [bots: ✓] Possible codes: 400,403 (details) + /// Upload a file and associate it to a chat (without actually sending it to the chat) See [bots: ✓] Possible codes: 400,403,500 (details) /// The chat, can be for bots and for users. /// File uploaded in chunks as described in files » /// a null value means messageMediaEmpty @@ -2976,7 +2976,7 @@ namespace TL media_count = media_count, }); - /// Upload a media file associated with an imported chat, click here for more info ». See + /// Upload a media file associated with an imported chat, click here for more info ». See Possible codes: 400 (details) /// The Telegram chat where the media will be imported /// Identifier of a history import session, returned by Messages_InitHistoryImport /// File name @@ -3494,7 +3494,7 @@ namespace TL hash = hash, }); - /// Report a message reaction See + /// Report a message reaction See Possible codes: 400 (details) /// Peer where the message was sent /// Message ID /// Peer that sent the reaction @@ -3620,7 +3620,7 @@ namespace TL peer = peer, }); - /// Obtain information about a named bot web app See [bots: ✓] Possible codes: 400 (details) + /// Obtain information about a named bot web app See Possible codes: 400 (details) /// Bot app information obtained from a named bot web app deep link ». /// Hash for pagination, for more info click here public static Task Messages_GetBotApp(this Client client, InputBotApp app, long hash = default) @@ -3630,7 +3630,7 @@ namespace TL hash = hash, }); - /// Open a bot web app from a named bot web app deep link, sending over user information after user confirmation. See [bots: ✓] + /// Open a bot web app from a named bot web 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 web 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 web app deep link docs. @@ -3702,7 +3702,7 @@ namespace TL limit = limit, }); - /// Installs a previously uploaded photo as a profile photo. See [bots: ✓] Possible codes: 400 (details) + /// Installs a previously uploaded photo as a profile photo. See [bots: ✓] Possible codes: 400,500 (details) /// If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. /// Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. /// Input photo @@ -4136,7 +4136,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 @@ -4211,7 +4211,7 @@ namespace TL username = username, }); - /// Join a channel/supergroup See Possible codes: 400,406 (details) + /// Join a channel/supergroup See Possible codes: 400,406,500 (details) /// Channel/supergroup to join public static Task Channels_JoinChannel(this Client client, InputChannelBase channel) => client.Invoke(new Channels_JoinChannel @@ -4521,7 +4521,7 @@ namespace TL enabled = enabled, }); - /// Create a forum topic; requires manage_topics rights. See [bots: ✓] Possible codes: 400 (details) + /// Create a forum topic; requires manage_topics rights. See [bots: ✓] Possible codes: 400,403 (details) /// The forum /// Topic title (maximum UTF-8 length: 128) /// If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. @@ -4540,7 +4540,7 @@ namespace TL send_as = send_as, }); - /// Get topics of a forum See [bots: ✓] Possible codes: 400 (details) + /// Get topics of a forum See Possible codes: 400 (details) /// Supergroup /// Search query /// Offsets for pagination, for more info click here @@ -4559,7 +4559,7 @@ namespace TL limit = limit, }); - /// Get forum topics by their ID See [bots: ✓] + /// Get forum topics by their ID See [bots: ✓] Possible codes: 400 (details) /// Forum /// Topic IDs public static Task Channels_GetForumTopicsByID(this Client client, InputChannelBase channel, params int[] topics) @@ -4600,7 +4600,7 @@ namespace TL pinned = pinned, }); - /// Delete message history of a forum topic See [bots: ✓] + /// Delete message history of a forum topic See [bots: ✓] Possible codes: 400 (details) /// Forum /// Topic ID public static Task Channels_DeleteTopicHistory(this Client client, InputChannelBase channel, int top_msg_id) @@ -5156,7 +5156,7 @@ namespace TL /// If set, the user's video will be disabled by default upon joining. /// The group call /// Join the group call, presenting yourself as the specified user/channel - /// The invitation hash from the invite link », if provided allows speaking in a livestream or muted group chat. + /// The invitation hash from the invite link », if provided allows speaking in a livestream or muted group chat. /// WebRTC parameters public static Task Phone_JoinGroupCall(this Client client, InputGroupCall call, InputPeer join_as, DataJSON params_, string invite_hash = null, bool muted = false, bool video_stopped = false) => client.Invoke(new Phone_JoinGroupCall @@ -5208,7 +5208,7 @@ namespace TL join_muted = join_muted.GetValueOrDefault(), }); - /// Get info about a group call See Possible codes: 400 (details) + /// Get info about a group call See Possible codes: 400,403 (details) /// The group call /// Maximum number of results to return, see pagination public static Task Phone_GetGroupCall(this Client client, InputGroupCall call, int limit = int.MaxValue) @@ -5300,7 +5300,7 @@ namespace TL peer = peer, }); - /// Get an invite link for a group call or livestream See Possible codes: 403 (details) + /// Get an invite link for a group call or livestream See Possible codes: 403 (details) /// For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand). /// The group call public static Task Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false) @@ -5568,7 +5568,7 @@ namespace TL peers = peers, }); - /// Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »). See [bots: ✓] + /// Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »). See [bots: ✓] Possible codes: 400 (details) /// The folder public static Task Chatlists_GetChatlistUpdates(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetChatlistUpdates