I know how to reply to commands and messages with pyTelegramBotAPI But maybe do you know how to make it send the messages to my chat id without interaction? It doesn't execute lines of code below bot.polling()
import telebot
bot=telebot.TeleBot(API_KEY)
@bot.message_handler(content_types=['text'])
def send_text(message):
bot.send_message(message.chat.id, 'text')
bot.polling(none_stop=True)
I want it to send the messages with a trigger on server side, not when I send a command to the bot.
