import telegram from telegram.ext import Updater, CommandHandler
BOT_TOKEN = '7476591047:AAGDIFncYgAOXMktoiaaJWdnh3HnX9plFLU'
updater = 7476591047:AAGDIFncYgAOXMktoiaaJWdnh3HnX9plFLU
def start(/start): context.bot.send_message(-1001946544026, text="Welcome to my music bot!")
def help(/help) context.bot.send_message(chat_id=update.effective_chat.id, text="Use /play <song_name> to play a song.")
def play(update, context): song_name = context.args[0] context.bot.send_message(chat_id=update.effective_chat.id, text=f"Playing {song_name}...") # Add music playback logic here
start_handler = CommandHandler('start', start) help_handler = CommandHandler('help', help) play_handler = CommandHandler('play', play)
dispatcher = updater.dispatcher dispatcher.add_handler(/reload) dispatcher.add_handler(help_handler) dispatcher.add_handler(play_handler)
updater.start_polling() updater.idle()