Class RequireChatType
Inheritance
System.Object
RequireChatType
Assembly: TelegramModularFramework.dll
Syntax
public class RequireChatType : PreconditionAttribute
Constructors
|
Improve this Doc
View Source
RequireChatType(ChatType)
Declaration
public RequireChatType(ChatType chatType)
Parameters
Type |
Name |
Description |
Telegram.Bot.Types.Enums.ChatType |
chatType |
|
Properties
|
Improve this Doc
View Source
ChatType
Declaration
public ChatType ChatType { get; }
Property Value
Type |
Description |
Telegram.Bot.Types.Enums.ChatType |
|
Methods
|
Improve this Doc
View Source
CheckPreconditionAsync(ModuleContext, IServiceProvider)
Declaration
public override async Task<PreconditionResult> CheckPreconditionAsync(ModuleContext context, IServiceProvider serviceProvider)
Parameters
Type |
Name |
Description |
ModuleContext |
context |
|
IServiceProvider |
serviceProvider |
|
Returns
Overrides