Advertisement
Guest User

Untitled

a guest
Jun 12th, 2022
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. from telebot import TeleBot, types
  2.  
  3.  
  4. bot = TeleBot("token_here")
  5.  
  6.  
  7. @bot.message_handler(commands=['start'])
  8. def send_welcome(message: types.Message):
  9. bot.send_message(chat_id=message.chat.id, text="text")
  10.  
  11.  
  12. bot.infinity_polling(skip_pending=True)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement