Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. @bot.message_handler(commands=['start'])
  2. def start(m):
  3. try:
  4. for i in range (-1,10):
  5. bot.delete_message(m.chat.id,m.message_id+i)
  6. except:
  7. pass
  8. gif = 'CgACAgQAAxkBAAIBM15OxkUofuioKz0XxMs10xdgceZGAAI7BgACnfd4Ul_T32ps-cQOGAQ'
  9. kb = types.InlineKeyboardMarkup()
  10. kb.add(types.InlineKeyboardButton(text='מגדלים 🧑🏽‍🌾', url='https://t.me/GanKasomGrow'))
  11. kb.add(types.InlineKeyboardButton(text='יד שנייה 📦', url='https://t.me/GanKasomExchange'))
  12. kb.add(types.InlineKeyboardButton(text='כיוונים', callback_data="civonim"))
  13. kb.add(types.InlineKeyboardButton(text='ביקורות 💭', url='https://t.me/GanKasomReviews'))
  14. kb.add(types.InlineKeyboardButton(text='בוט ביקורות 📝', url='https://t.me/GanKasomReviews'))
  15. bot.send_document(m.chat.id, gif, reply_markup = kb)
  16.  
  17. @bot.callback_query_handler(func=lambda c:True)
  18. def inline(c):
  19. if c.data == 'civonim':
  20. key = types.InlineKeyboardMarkup()
  21. but_1 = types.InlineKeyboardButton(text="צפון", callback_data="civonim")
  22. but_2 = types.InlineKeyboardButton(text="מרכז", callback_data="civonim")
  23. but_3 = types.InlineKeyboardButton(text="דרום", callback_data="civonim")
  24. key.add(but_1, but_2, but_3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement