public ChatsMessagesEditMessagePostRequest(string channel, ChatMessageIdentifier message, ChatMessage content, bool?unfurlLinks = null)
 {
     Channel       = channel;
     Message       = message;
     Content       = content;
     IsUnfurlLinks = unfurlLinks;
 }
Exemple #2
0
            public async Task DeleteMessageAsync(string channel, ChatMessageIdentifier id, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                await _connection.RequestResourceAsync("POST", $"api/http/chats/messages/delete-message{queryParameters.ToQueryString()}",
                                                       new ChatsMessagesDeleteMessagePostRequest
                {
                    Channel = channel,
                    Id      = id,
                }, cancellationToken);
            }
Exemple #3
0
            public async Task EditMessageAsync(string channel, ChatMessageIdentifier message, ChatMessage content, bool?unfurlLinks = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                await _connection.RequestResourceAsync("POST", $"api/http/chats/messages/edit-message{queryParameters.ToQueryString()}",
                                                       new ChatsMessagesEditMessagePostRequest
                {
                    Channel       = channel,
                    Message       = message,
                    Content       = content,
                    IsUnfurlLinks = unfurlLinks,
                }, cancellationToken);
            }
 public ChatsMessagesDeleteMessagePostRequest(string channel, ChatMessageIdentifier id)
 {
     Channel = channel;
     Id      = id;
 }