fix count command
This commit is contained in:
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():
|
if self.users.count() and not self.users.filter(user_id=update.effective_user.id).count():
|
||||||
update.effective_message.reply_text('GTFO')
|
update.effective_message.reply_text('GTFO')
|
||||||
return
|
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):
|
def build_dispatcher(self, dispatcher: Dispatcher):
|
||||||
dispatcher.add_handler(CommandHandler(['delete', 'del', 'remove', 'rem'], self.handle_delete, Filters.reply))
|
dispatcher.add_handler(CommandHandler(['delete', 'del', 'remove', 'rem'], self.handle_delete, Filters.reply))
|
||||||
|
Loading…
Reference in New Issue
Block a user