Interface ITelegramSubscriptionTrigger
Represents an Aura trigger that listens for messages in a specified Telegram chat. It activates or deactivates based on the text content of the messages, similar to the NetworkMessage trigger. The trigger uses the Telegram Bot API (https://core.telegram.org/bots/api) for receiving messages.
Inherited Members
Namespace: EyeAuras.AdvancedAuras.Triggers.TelegramMessage
Assembly: EyeAuras.AdvancedAuras.dll
Syntax
public interface ITelegramSubscriptionTrigger : IAuraTrigger, IAuraEntity, IAuraObject, IBindableReactiveObject, IHasId, IHasTypedId<string>, ICanSetContext, IHasContext, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, ICanSetName, IHasName, ICanSetDescription, IHasDescription
Properties
Name | Description |
---|---|
ActivationTextEvaluator | Text evaluator used to determine if a received message should activate the trigger. This can perform text matching, regular expressions, or C# expression evaluations. |
ChatId | Gets or sets the Chat ID. This identifies the specific Telegram chat to monitor. |
DeactivateAutomatically | Indicates if the trigger should automatically deactivate after being activated by the ActivationTextEvaluator. This happens even if no DeactivationTextEvaluator is set. |
DeactivationTextEvaluator | Text evaluator used to determine if a received message should deactivate the trigger. Similar to ActivationTextEvaluator in functionality. |
LastAuraMessage | The last received text message on the subscribed channel. |
Messages | A collection of the most recent messages received, stored in a circular list to limit memory usage. |
Proxy | Gets or sets the proxy settings, if needed, for connecting to the Telegram API. |
Token | Gets or sets the token for the Telegram Bot. This is required to authenticate with the Telegram API. |