WTelegramClientHelperCopyMessageAsync(Client, Message, ChatBase) Method

Asynchronously copies the provided message and sends it to the specified chat.

This is an alternative solution to message forwarding, allowing to make a complete copy of the message instead of simply forwarding it.

If you want to forward a message, call function ForwardMessageAsync(Client, Message, InputPeer, Channel, Boolean, Int32) instead.

Definition

Namespace: DevCase.ThirdParty.WTelegramClient
Assembly: DevCase.net48.ThirdParty.WTelegramClient (in DevCase.net48.ThirdParty.WTelegramClient.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Task<Message> CopyMessageAsync(
	Client client,
	Message msg,
	ChatBase toChat
)

Parameters

client  Client
The source Client object.
msg  Message
The source message to be copied.
toChat  ChatBase
The destination chat where the copied message will be sent.

Return Value

TaskMessage
An asynchronous operation that returns a Message representing the message sent.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also