本文整理汇总了Java中org.telegram.tgnet.TLRPC.InputDocument方法的典型用法代码示例。如果您正苦于以下问题:Java TLRPC.InputDocument方法的具体用法?Java TLRPC.InputDocument怎么用?Java TLRPC.InputDocument使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.telegram.tgnet.TLRPC
的用法示例。
在下文中一共展示了TLRPC.InputDocument方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: prepareSendingPhoto
import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
public static void prepareSendingPhoto(String imageFilePath, Uri imageUri, long dialog_id, MessageObject reply_to_msg, CharSequence caption, ArrayList<TLRPC.InputDocument> stickers) {
ArrayList<String> paths = null;
ArrayList<Uri> uris = null;
ArrayList<String> captions = null;
ArrayList<ArrayList<TLRPC.InputDocument>> masks = null;
if (imageFilePath != null && imageFilePath.length() != 0) {
paths = new ArrayList<>();
paths.add(imageFilePath);
}
if (imageUri != null) {
uris = new ArrayList<>();
uris.add(imageUri);
}
if (caption != null) {
captions = new ArrayList<>();
captions.add(caption.toString());
}
if (stickers != null && !stickers.isEmpty()) {
masks = new ArrayList<>();
masks.add(new ArrayList<>(stickers));
}
prepareSendingPhotos(paths, uris, dialog_id, reply_to_msg, captions, masks);
}
示例2: getMasks
import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
public ArrayList<TLRPC.InputDocument> getMasks() {
ArrayList<TLRPC.InputDocument> result = null;
int count = entitiesView.getChildCount();
for (int a = 0; a < count; a++) {
View child = entitiesView.getChildAt(a);
if (child instanceof StickerView) {
TLRPC.Document document = ((StickerView) child).getSticker();
if (result == null) {
result = new ArrayList<>();
}
TLRPC.TL_inputDocument inputDocument = new TLRPC.TL_inputDocument();
inputDocument.id = document.id;
inputDocument.access_hash = document.access_hash;
result.add(inputDocument);
}
}
return result;
}
示例3: didSelectPhotos
import org.telegram.tgnet.TLRPC; //导入方法依赖的package包/类
void didSelectPhotos(ArrayList<String> photos, ArrayList<String> captions, ArrayList<ArrayList<TLRPC.InputDocument>> masks, ArrayList<MediaController.SearchImage> webPhotos);