IMessagesService.

SendUploadedDocumentAsync(IInputPeer, IInputFile, string, IReadOnlyList<IDocumentAttribute>, string, IInputFile, CancellationToken) Method

Summary

Sends a document with to user or chat

Syntax

Task<IUpdates> SendUploadedDocumentAsync(IInputPeer peer, IInputFile document, string mimeType, IReadOnlyList<IDocumentAttribute> attributes, string message, IInputFile thumb = null, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
peer IInputPeer User or chat where a message will be sent
document IInputFile Document
mimeType string MimeType
attributes IReadOnlyList<IDocumentAttribute> Attributes
message string Message
thumb IInputFile The thumb
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<IUpdates> Updates