Skip to content
Discussion options

You must be logged in to vote

Hi @Codingwithamin

You can set a custom updater for do this.

from bale import Updater

class CustomUpdater(Updater):
def __init__(self, bot):
    super().__init__(bot)

def call_to_dispatch(self, update):
   if not ( update.type.is_message_update() and update.message.author.user_id == 1234):
       return await super().call_to_dispatch(update)

now you can set your custom updater to bot.

bot = bale.Bot(updater = CustomUpdater, ...)

Enjoy! 🤗

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@okaeiz
Comment options

@kian-ahmadian
Comment options

@okaeiz
Comment options

@kian-ahmadian
Comment options

Answer selected by kian-ahmadian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
3 participants