Z
Z
Zhenia Bel2020-12-30 16:29:46
Python
Zhenia Bel, 2020-12-30 16:29:46

How to make input in telebot?

Here is what I have now

@bot.message_handler(commands=['test'])
def test(message):
    bot.send_message(message.chat.id, "Введите ссылку на сайт:")

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
ReDeNDeR, 2020-12-30
@ReDeNDeR

If you mean how to interact with the text that is sent to the bot, then message accepts the text that is written to the bot, and if you mean the command line, then you can simply write input. This is a simple thing if this is your first bot then watch a video on YouTube or read some article and repeat after them.

S
soremix, 2020-12-30
@SoreMix

https://github.com/eternnoir/pyTelegramBotAPI/blob...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question