Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.message_handler(commands=['start'])
- def start(m):
- try:
- for i in range (-1,10):
- bot.delete_message(m.chat.id,m.message_id+i)
- except:
- pass
- gif = 'CgACAgQAAxkBAAIBM15OxkUofuioKz0XxMs10xdgceZGAAI7BgACnfd4Ul_T32ps-cQOGAQ'
- kb = types.InlineKeyboardMarkup()
- kb.add(types.InlineKeyboardButton(text='מגדלים 🧑🏽🌾', url='https://t.me/GanKasomGrow'))
- kb.add(types.InlineKeyboardButton(text='יד שנייה 📦', url='https://t.me/GanKasomExchange'))
- kb.add(types.InlineKeyboardButton(text='כיוונים', callback_data="civonim"))
- kb.add(types.InlineKeyboardButton(text='ביקורות 💭', url='https://t.me/GanKasomReviews'))
- kb.add(types.InlineKeyboardButton(text='בוט ביקורות 📝', url='https://t.me/GanKasomReviews'))
- bot.send_document(m.chat.id, gif, reply_markup = kb)
- @bot.callback_query_handler(func=lambda c:True)
- def inline(c):
- if c.data == 'civonim':
- key = types.InlineKeyboardMarkup()
- but_1 = types.InlineKeyboardButton(text="צפון", callback_data="civonim")
- but_2 = types.InlineKeyboardButton(text="מרכז", callback_data="civonim")
- but_3 = types.InlineKeyboardButton(text="דרום", callback_data="civonim")
- key.add(but_1, but_2, but_3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement