nostr:npub14qt30q0an6gwmcl2gnwu5hf6h7pgl68wm6c082asm5l9vdtzu87q0z9htj TY 🙏🏼 😲☀️ see above my response to Jay

Reply to this note

Please Login to reply.

Discussion

Do you see an error traceback on screen? If so, what does it say?

Looks like you are missing a required parameter when you instantiate the Updater class

I checked to make sure my import statement in the Python script was correct when I got the Updater error - and then would get the Filters error, so then I made sure the library has been updated and the Filters class wasn’t moved or renamed and then checked the library documentation for my version to ensure I’m following the correct way to import Filters..

I’m stumped 😂😫

I either get this error or this one -

I have redone the code like 9 times, and did all three above trouble shooting

Just found this discussion

Downgrading the telegram bot library may solve the issue

https://stackoverflow.com/questions/75363018/how-to-resolve-typeerror-init-missing-1-required-positional-argument-up

Here on reddit someone sais:

“According to the documentation, you need to instantiate an asyncio.Queue and pass it to the telegram.ext.Updater constructor as the second positional argument.”

https://www.reddit.com/r/learnpython/comments/13o3n2e/cant_make_a_telegram_bot/

😲😲 ok - Let me see how to go about this.

You've done a lot, but we'd need to know the actual error you get when you run your bot code or try to use it. You only listed out the general steps you've taken, so there could many problems at any of the steps. As a rule of thumb, you'll need to get every individual part working on its own before you try to link them together.

That means validating the telegram and openai apis separately, making sure they both work. Then going in and linking them up to build the bot.

great advice

It is great advice! I separated the codes a few hours ago starting with just the telegram bot (those are the errors I posted to Paulo) - And planned to integrate the openai apis once that was working - but seems that’s the catalyst for the errors.