IMessagesService.

SendUploadedPhotoAsync(IInputPeer, IInputFile, string, CancellationToken) Method

Summary

Sends a photo to user or chat

Syntax

Task<IUpdates> SendUploadedPhotoAsync(IInputPeer peer, IInputFile photo, string message, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
peer IInputPeer User or chat where a message will be sent
photo IInputFile Photo
message string Message
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<IUpdates> Updates