from telegram import Update
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes
# đ Replace this with your actual token
BOT_TOKEN = ‘PASTE-YOUR-TELEGRAM-BOT-TOKEN-HERE’
# đ Your default links
PAYPAL_LINK = ‘https://paypal.me/yourlink‘
COINBASE_LINK = ‘https://commerce.coinbase.com/checkout/yourcode‘ PWA_GENERATOR_LINK = ‘https://ray2407.github.io/pwa-maker/‘
# đą Command Handlers
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(
“đ Welcome to TEXCOOLBot!\n\nCommands:\n/getlink – Payment Links\n/createpwa – Make Landing Pages\n/help – Show Commands” )
async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(
“/start â Start bot\n/getlink â Payment links\n/createpwa â PWA Generator\n/help â Help” )
async def getlink(update: Update, context: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(
f”đž Payment Links:\nPayPal: {PAYPAL_LINK}\nCoinbase: {COINBASE_LINK}” )
async def createpwa(update: Update, context: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(
f”đ Launch the PWA Generator here:\n{PWA_GENERATOR_LINK}” )
# đ§ Main App
def main():
app = ApplicationBuilder().token(BOT_TOKEN).build()
app.add_handler(CommandHandler(“start”, start))
app.add_handler(CommandHandler(“help”, help_command))
app.add_handler(CommandHandler(“getlink”, getlink))
app.add_handler(CommandHandler(“createpwa”, createpwa))
print(“đ€ TEXCOOLBot is running…”)
app.run_polling()
if __name__ == ‘__main__’:
main()