diff --git a/.github/dev.yml b/.github/dev.yml index e1f441f..6187dbb 100644 --- a/.github/dev.yml +++ b/.github/dev.yml @@ -34,3 +34,21 @@ steps: publishPackageMetadata: true nuGetFeedType: 'external' publishFeedCredentials: 'nuget.org' + +- task: InvokeRESTAPI@1 + inputs: + connectionType: 'connectedServiceName' + serviceConnection: 'Telegram Deploy Notice' + method: 'POST' + body: | + { + "status": "success", + "complete": true, + "message": "{ + \"commitId\": \"$(Build.SourceVersion)\", + \"buildNumber\": \"$(Build.BuildNumber)\", + \"teamProjectName\": \"$(System.TeamProject)\", + \"commitMessage\": \"$(Build.SourceVersionMessage)\" + }" + } + waitForCompletion: 'false' diff --git a/.github/release.yml b/.github/release.yml index 0b50ce6..14e7bdb 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -59,13 +59,13 @@ stages: serviceConnection: 'Telegram Deploy Notice' method: 'POST' body: | - { + { "status": "success", "complete": true, "message": "{ \"commitId\": \"$(Build.SourceVersion)\", \"buildNumber\": \"$(Build.BuildNumber)\", - \"teamProjectName\": \"$(system.TeamProject)\" + \"teamProjectName\": \"$(System.TeamProject)\" }" } waitForCompletion: 'false' diff --git a/README.md b/README.md index e73b22e..0829baa 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,7 @@ or a [broadcast channel](https://corefork.telegram.org/api/channel#channels) (th See [FAQ #4](https://wiz0u.github.io/WTelegramClient/FAQ#access-hash) to learn more about it. - **DC** (DataCenter): There are a few datacenters depending on where in the world the user (or an uploaded media file) is from. - **Session** or **Authorization**: Pairing between a device and a phone number. You can have several active sessions for the same phone number. +- **Participant**: A member/subscriber of a chat group or channel # Other things to know diff --git a/src/Client.Helpers.cs b/src/Client.Helpers.cs index 57f4701..b8776ab 100644 --- a/src/Client.Helpers.cs +++ b/src/Client.Helpers.cs @@ -244,10 +244,10 @@ namespace WTelegram } } } - var lastMedia = multiMedia[^1]; - lastMedia.message = caption; - lastMedia.entities = entities; - if (entities != null) lastMedia.flags = InputSingleMedia.Flags.has_entities; + var firstMedia = multiMedia[0]; + firstMedia.message = caption; + firstMedia.entities = entities; + if (entities != null) firstMedia.flags = InputSingleMedia.Flags.has_entities; var updates = await this.Messages_SendMultiMedia(peer, multiMedia, reply_to: reply_to_msg_id == 0 ? null : new InputReplyToMessage { reply_to_msg_id = reply_to_msg_id }, schedule_date: schedule_date); RaiseUpdate(updates);