Method WithInlineKeyboard(IRouteDefinition, Action<InlineKeyboardBuilder>)
Attaches an inline keyboard to the next produced message by setting the
header. Sugar over
SetHeader(TelegramHeaders.ReplyMarkup, TgKeyboard.Inline(build)).
From(Tg.Receive(token))
.SetBody("Choose:")
.WithInlineKeyboard(k => k
.Row(r => r.Callback("✅ Yes", "act:yes").Callback("❌ No", "act:no")))
.To(Tg.Send(token).ChatId(Header(TelegramHeaders.ChatId)));
public static IRouteDefinition WithInlineKeyboard(this IRouteDefinition route, Action<InlineKeyboardBuilder> build)