Exemplo n.º 1
0
        public HandleInlineQueryCommand Handle(Query query, InlineQueryHandler handler)
        {
            HandleInlineQueryCommand del = async() =>
            {
                var contact = Methods.CutArguments(query.Query);
                await handler.HandleShowContactsInlineQueryCommand(query, Label.Sent, contact);
            };

            if (query.Query.StartsWith(InlineQueryCommand.CC_RECIPIENTS_COMMAND, StringComparison.CurrentCultureIgnoreCase))
            {
                return(del);
            }
            return(null);
        }
Exemplo n.º 2
0
        public HandleInlineQueryCommand Handle(Query query, InlineQueryHandler handler)
        {
            HandleInlineQueryCommand del = async() =>
            {
                var arguments = Methods.CutArguments(query.Query);
                var skip      = Methods.ArgumentAssigment(ref arguments);
                await handler.HandleShowMessagesInlineQueryCommand(query, Label.Inbox, skip, arguments);
            };

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