/// <summary> /// Search (non-case-sensitive) for gravestones per commanded inline query request. /// </summary> public static IEnumerable <Gravestone> SearchByCommand(this BotRoutingContext context) { try { return(context.Search(new CommandInlineQuery(context.GetInlineQuery()).Query)); } catch (ArgumentOutOfRangeException) { return(context.GraveKeeper.Gravestones); } }
/// <summary> /// Search (non-case-sensitive) for gravestones per inline query request. /// </summary> public static IEnumerable <Gravestone> SearchByFullQuery(this BotRoutingContext context) => context.Search(context.GetInlineQuery());