Summary
Sends a non-text message.
Syntax
Task<IUpdates> SendMediaAsync(IInputPeer peer, IInputMedia media, string message, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name |
Type |
Description |
peer |
IInputPeer |
User or group to receive the message |
media |
IInputMedia |
Content |
message |
string |
Message |
cancellationToken |
CancellationToken |
Cancellation token |
Return Value
Type |
Description |
Task<IUpdates> |
Returns a IUpdates object containing a service message sent during the action. |