N
N
NOblo2020-06-12 15:40:43
Python
NOblo, 2020-06-12 15:40:43

telebot module, send_message?

def hello():
    bot.send_message('да')

It displays an error, how to make sure that there is no error, and when the hello() function is triggered, the bot writes "yes"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-06-12
@NOblo

send_message takes 2 parameters - chat_id and the text itself.
Read the pyTelegramBotAPI documentation , or even better a Python book.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question