T
T
the_extreames2018-09-22 11:45:54
Python
the_extreames, 2018-09-22 11:45:54

How to make a /kick command?

Hello, how to make the /kick id time command in Telegram in Python? I tried to write, but it gave an error, here is the code:
@bot.message_handler(commands=["kick"])
def kick(message):
kick = bot.send_message(message.chat.id, "Type defendant ID:")
bot.register_next_step_handler(kick, idforkick)
def idforkick(message):
bot.kick_chat_member(message.chat.id, {kickid}.format(kickid=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 question

Ask a Question

731 491 924 answers to any question