A
A
azikkik2021-10-18 21:48:13
Python
azikkik, 2021-10-18 21:48:13

Can you help me with host or internet or whatever?

I run the code, the most common code

import telebot
bot = telebot.TeleBot("мой токен")


@bot.message_handler(commands=['salam'])


@bot.message_handler(commands=['salam'])
def start_message(message):
    bot.send_message(message.chat.id, 'Ва алейкум ассалам')

bot.polling()


and everything is fine, everything works, but after 30 seconds an error appears with breaking the host and everything stops. I restart everything works. The question is why telegrams seem to be allowed in Russia, but something is wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Loper47, 2021-10-18
@Loper47

Trybot.polling(none_stop=True)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question