Here, we have studied the structural and optoelectronic behaviour of a series of conjugated heterocyclic polymers. The basic monomer unit of the conjugated polymers contains a backbone of novel thiophene and pyrrole based 1,2,3,4-tetrazine. The other oligomers are designed by substituting the basic monomer unit with different electron-donating and electron-withdrawing groups at the nitrogen and the 3rd C-atom of the pyrrole and the thiophene ring respectively. We have calculated dihedral angles, HOMO-LUMO gaps, excitation energies and oscillator strengths by employing TD-DFT method. Our study reveals that compounds having bulky substituents exhibit larger dihedral angles. This in turn renders an increase in the band gaps (Delta(H-L)). Presence of the electron-withdrawing substituents also increases the Delta(H-L) values of the oligomers. However, the electron-donating groups decrease the Delta(H-L) values of the oligomers. Therefore, small electron-donating substituents have an overwhelming effect on the optoelectronic properties of the conjugated polymers which in turn makes them interesting materials with good conduction properties for fabrication of optoelectronic devices such as OLEDs, OFETs and solar cells.