A195kg / A

0 stars 0 forks source link

Z015 #1

Open A195kg opened 3 weeks ago

A195kg commented 3 weeks ago

from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, CommandHandler, CallbackContext

TOKEN = '7121577279:AAGOE1x4DU9fbYDniIuoHGAvlPte2XwpM44' WEB_APP_URL ='https://github.com/A195kg/A.git

def start(update: Update, context: CallbackContext): keyboard = [[InlineKeyboardButton("Play Clicker Planet", web_app_url=WEB_APP_URL)]] reply_markup = InlineKeyboardMarkup(keyboard) update.message.reply_text('Click the button below to play Clicker Planet!', reply_markup=reply_markup)

if name == 'main': updater = Updater(TOKEN, use_context=True) dp = updater.dispatcher

dp.add_handler(CommandHandler("start", start))

updater.start_polling()
updater.idle()
A195kg commented 3 weeks ago

C xh.xh

A195kg commented 3 weeks ago

dp.add_handler(CommandHandler("start", start))

updater.start_polling() updater.idle()