fix count command

master
bakatrouble 2 years ago
parent e2f7872be8
commit ed7035b74e

@ -153,7 +153,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
if self.users.count() and not self.users.filter(user_id=update.effective_user.id).count():
update.effective_message.reply_text('GTFO')
return
update.effective_message.reply_text(f'{QueuedItem.objects.filter(config=self).count()} items queued')
update.effective_message.reply_text(f'{QueuedItem.objects.filter(config=self, processed=False).count()} items queued')
def build_dispatcher(self, dispatcher: Dispatcher):
dispatcher.add_handler(CommandHandler(['delete', 'del', 'remove', 'rem'], self.handle_delete, Filters.reply))

Loading…
Cancel
Save