Exemplo n.º 1
0
        public InlineQueryResultArticle Result(Strings strings, string apikey, bool channel)
        {
            if (closed)
            {
                return(null);
            }
            ContentParts content = GetContent(strings, apikey, noApproximation: true /*TODO Request handler here*/, channel: channel);

            return(InlineQueryResultArticle.Create(chatId + ":" + pollId, content.InlineTitle, InputTextMessageContent.Create(content.Text, disableWebPagePreview: true), content.InlineKeyboard, description: content.InlineDescription, thumbUrl: "https://wjclub.capella.uberspace.de/groupagreebot/res/" + pollType.ToString() + "_" + anony.ToString() + ".png", thumbWidth: 256, thumbHeight: 256));
        }
Exemplo n.º 2
0
        public InlineQueryResultArticle Result(Strings strings, string apikey, bool channel)
        {
            if (closed)
            {
                return(null);
            }
            ContentParts content = GetContent(strings, apikey, channel);

            return(InlineQueryResultArticle.Create(chatId + ":" + pollId, pollText, InputTextMessageContent.Create(content.Text, disableWebPagePreview: true), content.InlineKeyboard, description: content.Description, thumbUrl: "https://bots.wjclub.tk/groupagreebot/res/" + pollType.ToString() + "_" + anony.ToString() + ".png", thumbWidth: 256, thumbHeight: 256));
        }