* Improved "MessageChatTypeFilter", now accepts flagged version of "ChatType" enum. "ChatTypeFlags"
* Added classes to reactive update filter annotations implementation "FilterAnnotation" * "CollectHandlersDowmainWide" method moved as extension to IHandlersCollection and added method "CollectHandlerAssemblyWide" named respectfully * Added "DefaultRouterExceptionHandler" to reactive implement "IRouterExceptionHandler" from function delegate * Small bug fixes in API overview generator logic
This commit is contained in:
@@ -36,4 +36,64 @@
|
||||
/// </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>
|
||||
/// Levels of debug writing
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum DebugLevel
|
||||
{
|
||||
/// <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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user