Combining the combined scripts and a combination

cat << ‘EOF’ > ~/Desktop/setup_raybots.py
import os

save_path = os.path.expanduser(“~/Desktop/telegram-bots”)
os.makedirs(save_path, exist_ok=True)

bots = {
“texcoolbot.py”: ”’
from telegram import Update
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes

BOT_TOKEN = ‘7464269358:AAEcUuwyX77QOAh6i_NJyPcYfNfhLreu3Lw’ PAYMENT_LINK = ‘https://ray2407.github.io/texcool/

async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
await update.message.reply_text(“đź’¸ Welcome to TEXCOOLBot!\\n/pay – Show payment link”)

async def pay(update: Update, context: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(f”Pay here: {PAYMENT_LINK}”)

def main():
app = ApplicationBuilder().token(BOT_TOKEN).build()
app.add_handler(CommandHandler(“start”, start))
app.add_handler(CommandHandler(“pay”, pay))
app.run_polling()

if __name__ == ‘__main__’:
main()
”’,

“ray2fb_bot.py”: ”’
from telegram import Update
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes

BOT_TOKEN = ‘8056349243:AAH7CVgBx5_ese73xjCg3ah71T6-NlrOeaI’ FB_LANDING_LINK = ‘https://ray2407.github.io/ray2fb/

async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
await update.message.reply_text(“đź‘‹ Ray2FB Bot\\n/funnel – Launch Facebook funnel”)

async def funnel(update: Update, context: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(f”🚀 {FB_LANDING_LINK}”)

def main():
app = ApplicationBuilder().token(BOT_TOKEN).build

Leave a comment