使用tencent協議發起臨時會話


調用默認瀏覽器打開鏈接tencent://message/?uin=QQ即可發起臨時會話
參數uin為目標QQ

Java示例
import java.awt.Desktop;
import java.net.URI;
import java.io.IOException;
public class TempSession {
    public static void main(String[] args) throws IOException {
        Desktop.getDesktop().browse(URI.create("tencent://message/?uin=980639902"));
    }
}

Qt示例
QDesktopServices::openUrl(QUrl("tencent://message/?uin=980639902"));

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM