Class TelegramRouteExtensions
Extension methods for using the Telegram webhook unpack pipeline inside a route DSL.
public static class TelegramRouteExtensions
Inheritance
Methods
UnpackTelegramUpdate(IRouteDefinition)
Deserializes a raw Telegram webhook JSON body into an object
public static IRouteDefinition UnpackTelegramUpdate(this IRouteDefinition route)
WithInlineKeyboard(IRouteDefinition, Action<InlineKeyboardBuilder>)
Attaches an inline keyboard to the next produced message by setting the
public static IRouteDefinition WithInlineKeyboard(this IRouteDefinition route, Action<InlineKeyboardBuilder> build)
WithoutKeyboard(IRouteDefinition, bool)
Removes the current custom reply keyboard on the next produced message by setting the
public static IRouteDefinition WithoutKeyboard(this IRouteDefinition route, bool selective = false)
WithReplyKeyboard(IRouteDefinition, Action<ReplyKeyboardBuilder>)
Attaches a reply keyboard (buttons below the input field) to the next produced
public static IRouteDefinition WithReplyKeyboard(this IRouteDefinition route, Action<ReplyKeyboardBuilder> build)