意图发送电报信息
Intent myIntent = new Intent(Intent.ACTION_SEND);
myIntent.setType("text/plain");
myIntent.setPackage("org.telegram.messenger");
myIntent.putExtra(Intent.EXTRA_TEXT, msg);
mUIActivity.startActivity(Intent.createChooser(myIntent, "Share with"));
我感谢任何帮助。
编辑1: 我认为这是不可能的:( Telegram messenger使用此方法转发多条消息
private void forwardMessages(ArrayList<MessageObject> arrayList, boolean fromMyName) {
if (arrayList == null || arrayList.isEmpty()) {
return;
}
if (!fromMyName) {
SendMessagesHelper.getInstance().sendMessage(arrayList, dialog_id, chatActivityEnterView == null || chatActivityEnterView.asAdmin());
} else {
for (MessageObject object : arrayList) {
SendMessagesHelper.getInstance().processForwardFromMyName(object, dialog_id, chatActivityEnterView == null || chatActivityEnterView.asAdmin());
}
}
}
这意味着Telegram不会对多条消息使用共享意图
此handleIntent
方法中的Link,该代码不适用于此项工作。[在此级别:(]