Esempio n. 1
0
 def in_feedback(self):
     if not self.message or not self.is_group():
         return False
     from bot.helpers import feedback_tgchat
     return feedback_tgchat(
     ).tg_id and self.message.chat.id == feedback_tgchat().tg_id
Esempio n. 2
0
 def unknown_text(tguser: TgUser):
     tguser.render_to_string('bot/private/errors/unknown_text.html',
                             keyboard=keyboards.Start)
     if tguser.after_unknown_text:
         tguser.after_unknown_text(tguser)
     OtherHandler.send_to_feedback_tgchat(tguser, feedback_tgchat())