Advertisement
Guest User

Untitled

a guest
Apr 20th, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. import telebot
  2. import config
  3.  
  4. bot = telebot.TeleBot(config.Token)
  5.  
  6.  
  7. @bot.message_handler(commands=['start'])
  8. def send_welcome(message):
  9.     sti = open(r'static\ welcome.webp', 'rb')
  10.     bot.send_sticker(message.chat.id, sti)
  11.     bot.send_message(message.chat.id, 'Добро пожаловать ,{0.first_name}! \nЯ -\/<b>{1.first_name}<\b> ,бот,который поддержит                                  людей.').format(message.from_user, bot.get_me((), parse_mode="html"))
  12.  
  13.  
  14. bot.infinity_polling()
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement