I am doing a bot-moderator. I am doing a command 'ban'. if I reply to somebody's message by typing /ban bot should get its id and restrict him.
my code now:
@bot.messsage_handler(commands=['ban'])
def ban(message):
#here I should get the id of a user which I replied in Telegram
#then bot should restrict him.
PyTelegramBotApi
python 3.7
thank you