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

Asynchronously forwards the provided message to the specified channel.

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

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.
toChannel  Channel
The destination channel where to forward the message to.
includeSender  Boolean
If True, includes the "Forwarded" header in the forwarded message.
topicId  Int32  (Optional)
Optional. If toChannel is a group, this value indicate the topic where the forwarded message will be sent.

Default value is zero.

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