Answer the question
In order to leave comments, you need to log in
How to name a button in a telegram bot so that it works as a command?
Hello, I have a bot in which the function is implemented by the team. Is it possible to add a name for the team. The button looks like this:
And it is necessary for the fucking bot to send /WhatsApp, and in the menu the button should be like Write to WA. Tell me how to do it?
def number(message):
bot.send_message(message.chat.id, f'Вот твоя ссылка: http://api.whatsapp.com/send/?phone={message.text}')
@bot.message_handler(commands=['WhatsApp'])
def welcom(message):
bot.send_message(message.chat.id, 'Отправь номер телефона')
bot.register_next_step_handler(message, number)
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