Improved files support in inline bot results.

This commit is contained in:
John Preston
2016-04-04 11:21:14 +04:00
parent 35785efa50
commit a2fc7f6915
7 changed files with 136 additions and 34 deletions
+2 -2
View File
@@ -1798,10 +1798,10 @@ LayoutInlineItem *StickerPanInner::layoutPrepareInlineResult(InlineResult *resul
using Type = InlineResult::Type;
switch (result->type) {
case Type::Photo: layout = new LayoutInlinePhoto(result); break;
case Type::Audio:
case Type::File: layout = new LayoutInlineFile(result); break;
case Type::Video: layout = new LayoutInlineVideo(result); break;
case Type::Sticker: layout = new LayoutInlineSticker(result); break;
case Type::Audio:
case Type::File: //layout = new LayoutInlineFile(result); break;
case Type::Gif: layout = new LayoutInlineGif(result); break;
case Type::Article:
case Type::Contact: