From 691c49b30d929a6868ff20a881f4a8748a1b0fec Mon Sep 17 00:00:00 2001 From: lambrightn17 <lambright303@gmail.com> Date: Thu, 4 Jul 2024 16:45:07 -0700 Subject: [PATCH] Create bot all keywords should be on high search --- bot | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bot diff --git a/bot b/bot new file mode 100644 index 00000000..258033d7 --- /dev/null +++ b/bot @@ -0,0 +1,23 @@ +print('Bot:", response) +await update.message.reply_text(response) + +async def error (update: Update, context: ContextTypes.DEFAULT_TYPE): +print(f"Update f(update) caused error (context.error)') + +if _name_ '_main_: +app = Application.builder().token(6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag).build() + +#Commands +app.add_handler(CommandHandler('start',start_command)) +app.add_handler(CommandHandler('help',help_command)) +app.add_handler(CommandHandler('costum',costum_command)) + +#Messages +app.add_handler(MessageHandler(Filter,Text,handler_message)) + +#Error +app.add.error.handler(error) + +#Pull the bot +print('Pulling....') +app.run_pulling(pull_interval=5)