Answer the question
In order to leave comments, you need to log in
How to fix the error when issuing a mut?
Hello, I have this code:
@bot.message_handler(commands=["pmute"])
def handle_text(message):
mute = bot.send_message(message.chat.id, privacy.pbanforid)
bot.register_next_step_handler(mute, timem)
def timem(message):
timec = bot.send_message(message.chat.id, privacy.pbanforid)
bot.register_next_step_handler(timec, mutea)
def mutea(message):
bot.restrict_chat_member(message.chat.id, '{muteid}'.format(muteid=message.text), until_date=time()+ '{sec}'.format(sec=message.text))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question