N
N
NOblo2020-06-10 15:11:02
Python
NOblo, 2020-06-10 15:11:02

Telebot module, how to make one....?

bot.message_handler(content_types = ['text'])
def hello(message):
    bot.send_message(message.chat.id, "hello")

Error says "bot.send_message(message.chat.id, "hello")"
"message" not found, how to make it just send message without any message.text ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tmorari, 2020-07-02
@tmorari

@bot.message_handler(content_types = ['text'])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question