WTelegramClientHelperForwardMessageAsync(Client, Message, InputPeer, InputPeer, Boolean) Method

Asynchronously forwards the provided message to the specified chat.

If you want to make a complete copy of the message and send it instead of simply forwarding it, call function CopyMessageAsync(Client, Message, Channel, 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<UpdatesBase> ForwardMessageAsync(
	Client client,
	Message msg,
	InputPeer fromChat,
	InputPeer toChat,
	bool includeSender
)

Parameters

client  Client
The source Client object.
msg  Message
The source message to be forwarded.
fromChat  InputPeer
The source chat where to forward the message from.
toChat  InputPeer
The destination chat where to forward the message to.
includeSender  Boolean
If True, includes the "Forwarded" header in the forwarded message.

Return Value

TaskUpdatesBase
An asynchronous operation that returns a UpdatesBase.

Example

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

See Also