Merge remote-tracking branch 'origin/master'

This commit is contained in:
bakatrouble 2021-04-12 14:47:42 +03:00
commit d0bc1e493e

View File

@ -39,6 +39,8 @@ class FeedbackBotModuleConfig(TelegramBotModuleConfig):
update.effective_message.reply_text('I don\'t know in which chat to forward this message') update.effective_message.reply_text('I don\'t know in which chat to forward this message')
def handle_external_message(self, update: Update, ctx: CallbackContext): def handle_external_message(self, update: Update, ctx: CallbackContext):
if update.effective_message.text and update.effective_message.text.startswith('/'):
return
chat = self._get_chat(update) chat = self._get_chat(update)
# last_message = FeedbackMessage.objects.filter(chat=chat).last() # last_message = FeedbackMessage.objects.filter(chat=chat).last()
msg = update.message.forward(self.forward_chat_id) msg = update.message.forward(self.forward_chat_id)