def after_choise2_(bot, update): print("ghghfh") text = "Спасибо за выбор, выберите что нить еще прикольное" update.message.reply_text(text, reply_markup= chosen_keyboard() ) current = Current_day() current.read() user_id = update.message.chat_id print(user_id) current.us_append_feedback(int(user_id),"2",5) current.write() current.print() return var1
def after_choise__2(bot, update): current = Current_day() current.read() user_id = update.message.chat_id current.us_append_feedback(user_id,"2",1) current.write() update.message.reply_text("ждите короче)_Это конец",reply_markup= ReplyKeyboardRemove())
def after_choise_5(bot, update): text = "Спасибо за выбор, выберите что нить еще прикольное" update.message.reply_text(text, reply_markup= chosen_keyboard() ) current = Current_day() current.read() user_id = update.message.chat_id current.us_append_feedback(user_id,"5",3) current.write() return var2
def piwu_pismo2(first, text, x, user): if first == "1": current = Current_day() current.read() current.us_append_feedback_vk(user.id, "1", x) current.write() vk.send_message2(user.id, text) elif first == "2": current = Current_day() current.read() current.us_append_feedback_vk(user.id, "2", x) current.write() vk.send_message2(user.id, text) elif first == "3": current = Current_day() current.read() current.us_append_feedback_vk(user.id, "3", x) current.write() vk.send_message2(user.id, text) elif first == "4": current = Current_day() current.read() current.us_append_feedback_vk(user.id, "4", x) current.write() vk.send_message2(user.id, text) elif first == "5": current = Current_day() current.read() current.us_append_feedback_vk(user.id, "5", x) current.write() vk.send_message2(user.id, text) else: vk.send_message2(user.id, "чет не понял, сорян")
TYPING_CHOICE2 = 0 CHOICE1 = 1 CHOICE2 = 1 var1, var2 = 0, 1 couple = COUPLE_DF() USERS_baza = USERS_DF() vk = server(tocken_vk) vk_df = vk_df() bot = telebot.TeleBot(token) book = library.book question = questions() current = Current_day() data = data() logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) updater = Updater(token) from tg_conversation import tg_converastion from vk_listen import listen from vk_conversation import vk_con, keyboard_statistic, keyboard_nachat, keyboard_start from main import sender, keyboard_like, keyboard_statistic, like, markup print("hoho")