Summary
Sends a text message.
- Namespace
- OpenTl
.ClientApi .Services .Interfaces - Containing Type
- IMessagesService
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 |