WTelegramClientHelperCopyMessageAsync(Client, Message, Channel, Int32) Method

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

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,
	Channel toChannel,
	int topicId = 0
)

Parameters

client  Client
The source Client object.
msg  Message
The source message to be copied.
toChannel  Channel
The destination channel where the copied message will be sent.
topicId  Int32  (Optional)
Optional. If toChannel is a group, this value indicate the topic where the copied message will be sent.

Default value is zero.

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