Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telebot
- from telebot import types
- bot = telebot.TeleBot("1020076156:AAEvISKX9wEav2yOUaQlwyMKtyHio6uN2TQ")
- @bot.message_handler(commands=['start']
- @bot.message_handler(content_types=['document'])
- def docs(m):
- bot.send_message(m.chat.id, m.document.file_id)
- def keyboard():
- markup = types.ReplyKeyboardMarkup(one_time_keyboard=True, resize_keyboard=True)
- btn1 = types.KeyboardButton('בוט הגזע')
- markup.add(btn1)
- return markup
- if __name__ == "__main__":
- bot.polling(none_stop=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement