Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Search (non-case-sensitive) for gravestones per inline query request.
 /// </summary>
 public static IEnumerable <Gravestone> SearchByFullQuery(this BotRoutingContext context)
 => context.Search(context.GetInlineQuery());