Esempio 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);
     }
 }
Esempio 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());