Answer the question
In order to leave comments, you need to log in
Python code for telegrama?
I wrote a simple code that repeats everything and for it to work you need to activate the code (and it turns off after 3-5 minutes). I want to run forever and that it doesn't turn off. Is it possible to?
import telebot
import config
bot = telebot.TeleBot(config.TOKEN)
@bot.message_handler(content_types=['text'])
def lalala(message):
bot.send_message(message.chat.id, message.text)
#RUN
bot.polling(none_stop=True)
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