Class TelegramBotWebHookHostBuilderExtensions
Inheritance
System.Object
TelegramBotWebHookHostBuilderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TelegramModularFramework.WebHook
Assembly: TelegramModularFramework.WebHook.dll
Syntax
public static class TelegramBotWebHookHostBuilderExtensions
Methods
| Improve this Doc View SourceConfigureTelegramBotWebHookHost(IHostBuilder, Action<HostBuilderContext, TelegramBotWebHookHostConfiguration>)
Adds and configures a Telegram.Bot.ITelegramBotClient along with the required services with WebHook support.
Declaration
public static IHostBuilder ConfigureTelegramBotWebHookHost(this IHostBuilder builder, Action<HostBuilderContext, TelegramBotWebHookHostConfiguration> config)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Hosting.IHostBuilder | builder | The host builder to configure. |
Action<Microsoft.Extensions.Hosting.HostBuilderContext, TelegramBotWebHookHostConfiguration> | config | The delegate to configure TelegramBotWebHookHostConfiguration |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Hosting.IHostBuilder |