Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import telebot
  2. from telebot import types
  3.  
  4. bot = telebot.TeleBot("1020076156:AAEvISKX9wEav2yOUaQlwyMKtyHio6uN2TQ")
  5.  
  6.  
  7. @bot.message_handler(commands=['start']
  8. @bot.message_handler(content_types=['document'])
  9.  
  10. def docs(m):
  11. bot.send_message(m.chat.id, m.document.file_id)
  12.  
  13. def keyboard():
  14. markup = types.ReplyKeyboardMarkup(one_time_keyboard=True, resize_keyboard=True)
  15. btn1 = types.KeyboardButton('בוט הגזע')
  16. markup.add(btn1)
  17. return markup
  18.  
  19. if __name__ == "__main__":
  20. bot.polling(none_stop=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement