авыа ыва ыва. Diplomnaya.Rabota._цуеуцеыы1_ — копия. ЫНаучный руководитель ученая степень, должность
Скачать 1.57 Mb.
|
if data == '1': fsm.third13_to_third14() return if data == '2': fsm.third_4_16_to_no() return if fsm.current == 'third14': if data == '1': fsm.third14_to_third15() return if data == '2': fsm.third_4_16_to_no() return if fsm.current == 'third15': if data == '1': fsm.third15_to_third16() return if data == '2': fsm.third_4_16_to_no() return if fsm.current == 'third16': if data == '1': fsm.third16_to_third17() return if data == '2': fsm.third_4_16_to_no() return if fsm.current == 'fourth1': if data == '1': fsm.fourth1_to_fourth2() return if data == '2': fsm.fourth1_to_no() return if fsm.current == 'fourth2': if data == '1': fsm.fourth2_to_fourth3() return if data == '2': fsm.fourth2_to_no() return if fsm.current == 'fourth3': if data == '1': fsm.fourth3_to_fourth4() return if data == '2': fsm.fourth3_to_no() return if fsm.current == 'fourth4': if data == '1': fsm.fourth4_to_fourth5() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth5': if data == '1': fsm.fourth5_to_fourth6() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth6': if data == '1': fsm.fourth6_to_fourth7() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth7': if data == '1': fsm.fourth7_to_fourth8() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth8': if data == '1': fsm.fourth8_to_fourth9() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth9': if data == '1': fsm.fourth9_to_fourth10() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth10': if data == '1': fsm.fourth10_to_fourth11() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth11': if data == '1': fsm.fourth11_to_fourth12() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth12': if data == '1': fsm.fourth12_to_fourth13() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth13': if data == '1': fsm.fourth13_to_fourth14() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth14': if data == '1': fsm.fourth14_to_fourth15() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth15': if data == '1': fsm.fourth15_to_fourth16() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth16': if data == '1': fsm.fourth16_to_fourth17() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth17': if data == '1': fsm.fourth17_to_fourth18() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth18': if data == '1': fsm.fourth18_to_fourth19() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth19': if data == '1': fsm.fourth19_to_fourth20() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fourth20': if data == '1': fsm.fourth20_to_fourth21() return if data == '2': fsm.fourth_4_20_to_no() return if fsm.current == 'fifth1': if data == '1': fsm.fifth1_to_fifth2() return if data == '2': fsm.fifth1_to_no() return if fsm.current == 'fifth2': if data == '1': fsm.fifth2_to_fifth3() return if data == '2': fsm.fifth2_to_no() return if fsm.current == 'fifth3': if data == '1': fsm.fifth3_to_fifth4() return if data == '2': fsm.fifth3_to_no() return if fsm.current == 'fifth4': if data == '1': fsm.fifth4_to_fifth5() return if data == '2': fsm.fifth4_to_no() return if fsm.current == 'fifth5': if data == '1': fsm.fifth5_to_fifth6() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth6': if data == '1': fsm.fifth6_to_fifth7() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth7': if data == '1': fsm.fifth7_to_fifth8() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth8': if data == '1': fsm.fifth8_to_fifth9() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth9': if data == '1': fsm.fifth9_to_fifth10() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth10': if data == '1': fsm.fifth10_to_fifth11() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth11': if data == '1': fsm.fifth11_to_fifth12() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth12': if data == '1': fsm.fifth12_to_fifth13() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth13': if data == '1': fsm.fifth13_to_fifth14() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth14': if data == '1': fsm.fifth14_to_fifth15() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth15': if data == '1': fsm.fifth15_to_fifth16() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'fifth16': if data == '1': fsm.fifth16_to_fifth17() return if data == '2': fsm.fifth_5_16_to_no() return if fsm.current == 'sixth1': if data == '1': fsm.sixth1_to_sixth2() return if data == '2': fsm.sixth1_to_sixth3() return if fsm.current == 'sixth2': if data == '1': fsm.sixth2_to_yes() return if data == '2': fsm.sixth2_to_no() return if fsm.current == 'sixth3': if data == '1': fsm.sixth3_to_yes() return if data == '2': fsm.sixth3_to_no() return if __name__ == '__main__': #В бесконечном цикле держмим бот в запущенном состоянии, обрабатывая возможные ошибки. while True: try: bot.polling(none_stop=True, timeout=1000) except Exception as ex: print(ex) time.sleep(10) |