Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telebot
- from telebot import types
- from config import token, channel_link, channel_name, redirect_link, redirect_name
- bot = telebot.TeleBot(token, parse_mode='html')
- @bot.message_handler(commands=['start'])
- def start(message):
- keyboard = types.InlineKeyboardMarkup(row_width=1)
- btn = types.InlineKeyboardButton(url='https://google.com',
- text='Кнопка')
- keyboard.add(btn)
- with open('static/welc.webp', 'rb') as photo:
- bot.send_photo(message.chat.id, photo, caption='ЖМИ 👇🏻👇🏻👇', reply_markup=keyboard)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement