main.py 248 B

1234567891011
  1. #!/bin/env python3
  2. import telebot
  3. bot = telebot.TeleBot("your token")
  4. @bot.message_handler(content_types=['text'])
  5. def get_text_messages(message):
  6. bot.send_message(message.from_user.id, "Hello, World!")
  7. bot.polling(none_stop=True, interval=0)