예제 #1
0
        public HandleChosenInlineResultCommand Handle(QueryResult.ChosenInlineResult result, Service service, ChosenInlineResultHandler handler)
        {
            HandleChosenInlineResultCommand del = async() =>
            {
                await handler.HandleSetBccChosenInlineResult(result);
            };

            if (result.Query.StartsWith(InlineQueryCommand.BCC_RECIPIENTS_COMMAND, StringComparison.CurrentCultureIgnoreCase))
            {
                return(del);
            }
            return(null);
        }
예제 #2
0
        public HandleChosenInlineResultCommand Handle(QueryResult.ChosenInlineResult result, Service service, ChosenInlineResultHandler handler)
        {
            HandleChosenInlineResultCommand del = async() =>
            {
                await handler.HandleGetMesssagesChosenInlineResult(result, service);
            };

            if (result.Query.StartsWith(InlineQueryCommand.INBOX_COMMAND, StringComparison.CurrentCultureIgnoreCase))
            {
                return(del);
            }
            return(null);
        }