from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import Updater, CommandHandler, CallbackContext
TOKEN = 'ВАШ_ТОКЕН'
def start(update: Update, context: CallbackContext) -> None:
keyboard = [[InlineKeyboardButton("Подписаться", callback_data='subscribe')]]
reply_markup = InlineKeyboardMarkup(keyboard)
update.message.reply_text('Добро пожаловать!', reply_markup=reply_markup)
def main() -> None:
updater = Updater(TOKEN)
dispatcher = updater.dispatcher
dispatcher.add_handler(CommandHandler("start", start))
updater.start_polling()
updater.idle()
if __name__ == '__main__':
main()