bf66431089
* AnonymousCompiledFilter now has undependent realization * All internal filters now implement INamedFilter interface * Added new static methods to "Filter" class * Added Filters fallbacking system * Added "FiltersFallback" method in "UpdatehandlerBase" * Changed filters validating system to be able to report failed filters * Added "FiltersFallbackReport" class * Added "FormReport" Property to "UpdateHandlerAttributeBase" * Version incremented
135 lines
3.1 KiB
C#
135 lines
3.1 KiB
C#
namespace Telegrator
|
|
{
|
|
/// <summary>
|
|
/// Enumeration of dice types supported by Telegram.
|
|
/// Used for filtering dice messages and determining dice emoji representations.
|
|
/// </summary>
|
|
public enum DiceType
|
|
{
|
|
/// <summary>
|
|
/// Standard dice (🎲).
|
|
/// </summary>
|
|
Dice,
|
|
|
|
/// <summary>
|
|
/// Darts (🎯).
|
|
/// </summary>
|
|
Darts,
|
|
|
|
/// <summary>
|
|
/// Bowling (🎳).
|
|
/// </summary>
|
|
Bowling,
|
|
|
|
/// <summary>
|
|
/// Basketball (🏀).
|
|
/// </summary>
|
|
Basketball,
|
|
|
|
/// <summary>
|
|
/// Football (⚽).
|
|
/// </summary>
|
|
Football,
|
|
|
|
/// <summary>
|
|
/// Casino slot machine (🎰).
|
|
/// </summary>
|
|
Casino
|
|
}
|
|
|
|
/// <summary>
|
|
/// Flags version of <see cref="Telegram.Bot.Types.Enums.ChatType"/>
|
|
/// Type of the <see cref="Telegram.Bot.Types.Chat"/>, from which the message or inline query was sent
|
|
/// </summary>
|
|
[Flags]
|
|
public enum ChatTypeFlags
|
|
{
|
|
/// <summary>
|
|
/// Normal one-to-one chat with a user or bot
|
|
/// </summary>
|
|
Private = 0x1,
|
|
|
|
/// <summary>
|
|
/// Normal group chat
|
|
/// </summary>
|
|
Group = 0x2,
|
|
|
|
/// <summary>
|
|
/// A channel
|
|
/// </summary>
|
|
Channel = 0x4,
|
|
|
|
/// <summary>
|
|
/// A supergroup
|
|
/// </summary>
|
|
Supergroup = 0x8,
|
|
|
|
/// <summary>
|
|
/// Value possible only in <see cref="Telegram.Bot.Types.InlineQuery.ChatType"/>: private chat with the inline query sender
|
|
/// </summary>
|
|
Sender
|
|
}
|
|
|
|
/*
|
|
/// <summary>
|
|
/// Messages from where this filter was originated
|
|
/// </summary>
|
|
public enum FilterOrigin
|
|
{
|
|
/// <summary>
|
|
/// None, empty filter
|
|
/// </summary>
|
|
None,
|
|
|
|
/// <summary>
|
|
/// From <see cref="Attributes.UpdateHandlerAttribute{T}"/> update validator filter
|
|
/// </summary>
|
|
Validator,
|
|
|
|
/// <summary>
|
|
/// From <see cref="Attributes.StateKeeperAttribute{TKey, TState, TKeeper}"/> state machine filter
|
|
/// </summary>
|
|
StateKeeper,
|
|
|
|
/// <summary>
|
|
/// From regular <see cref="Attributes.UpdateFilterAttribute{T}"/>
|
|
/// </summary>
|
|
Regualr
|
|
}
|
|
*/
|
|
|
|
/*
|
|
/// <summary>
|
|
/// Levels of debug writing
|
|
/// </summary>
|
|
[Flags]
|
|
public enum DebugLevel
|
|
{
|
|
/// <summary>
|
|
/// None to write
|
|
/// </summary>
|
|
None = 0x0,
|
|
|
|
/// <summary>
|
|
/// Write debug messages from filters execution
|
|
/// </summary>
|
|
Filters = 0x1,
|
|
|
|
/// <summary>
|
|
/// Write debug messages from handlers providers execution
|
|
/// </summary>
|
|
Providers = 0x2,
|
|
|
|
/// <summary>
|
|
/// Write debug messages from update router's execution
|
|
/// </summary>
|
|
Router = 0x4,
|
|
|
|
/// <summary>
|
|
/// Write debug messages from handlers pool execution
|
|
/// </summary>
|
|
HandlersPool = 0x8
|
|
}
|
|
*/
|
|
}
|