The present invention relates to heteroaryl fused pyrazole derivatives, a preparation method thereof and pharmaceutical use thereof. Specifically, The present invention relates to heteroaryl fused pyrazole derivatives represented by general formula (I), a preparation method thereof, pharmaceutical compositions containing the derivatives and use of treatment diseases, particularly as a TLR7 agonist. The definition of each substituent group in general formula (I) is the same as the definition in the description.本發明涉及吡唑並雜芳基類衍生物、其製備方法及其在醫藥上的應用。具體而言,本發明涉及一種通式(I)所示的新的吡唑並雜芳基類衍生物、其製備方法及含有該衍生物的醫藥組成物以及其作為治療劑,特別是作為TLR7激動劑的用途,其中通式(I)的各取代基與說明書中的定義相同。