IMessagesService.

SendMessageAsync(IInputPeer, string, CancellationToken) Method

Summary

Sends a text message.

Syntax

Task<IUpdates> SendMessageAsync(IInputPeer peer, string message, CancellationToken cancellationToken = default(CancellationToken))

Parameters

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

Return Value

Type Description
Task<IUpdates>