WTelegramClientHelper Class

Contains WTelegramClient related utilities.

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 sealed class WTelegramClientHelper
Inheritance
Object    WTelegramClientHelper

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

https://www.nuget.org/packages/ImageComparison

Methods

ConfigureLogging Configures WTelegramClient API logging based on the specified parameters.
CopyMessageAsync(Client, Message, ChatBase) 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.

CopyMessageAsync(Client, Message, Channel, Int32) 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.

CreateClient Creates an instance of the Client class using the configuration specified in the provided TelegramClientConfig object.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ForwardMessageAsync(Client, Message, InputPeer, InputPeer, Boolean) 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.

ForwardMessageAsync(Client, Message, InputPeer, Channel, Boolean, Int32) 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.

GetChannelMessages Asynchronously retrieves messages from the specified channel.
GetChannelsAsync Asynchronously retrieves a collection of Channel objects containing all the channels from the client.
GetChannelsByTitleAsync Asynchronously retrieves a collection of Channel objects that match the provided channel title.
GetChannelTopicsAsync Asynchronously retrieves a collection of ForumTopic objects containing the topics from the the provided channel.
GetChannelTopicsByTitleAsync Asynchronously retrieves a collection of ForumTopic objects that match the provided topic title from the provided channel.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
SetFieldValueT Sets the value of a field from the provided source object using reflection.
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also