
Size: a a a
try:
if call.data == 'txt':
txt_otchet = open('{}_{}.txt', 'w'.format(call.from_user.id, random.randrange(1, 10000000000)))
if CTR > 6%:
txt_otchet.write(vvg)
if CTR > 3%:
txt_otchet.write(vg)
if CTR > 1,5%:
txt_otchet.write(vn)
if CTR > 0,5%:
txt_otchet.write(vb)
if CTR < 0,5%:
txt_otchet.write(vbb)
bot.send_document(call.from_user.id, txt_otchet)