The language doesn't matter. The fundamentals do. Pick any language (for web-based apps I would recommend Python/PHP), and start learning by doing. Take it slow and start at the beginning. Start with the basics in computer science, then continue with the main building blocks (loops, conditionals, variables, etc...) and after you've gotten good at them by practicing and developing simple apps, continue with OOP (object oriented programming). OOP should take a great deal of your time as it's very important to master before you start building your first complex production app. Then start learning about software engineering principles - agile, design patters, subsystem decomposition and design, continuous integration and deployment, VCS (version control system), etc...
After you get good at these fundamental concepts, you can then advance and tackle any problem in any language. There is very little difference between programming languages. It's good to know the differences so you pick the correct one if you have a specific problem you are trying to solve, but for most intents and purposes, any language will do. And most software engineers end up learning them all anyway after some years of experience.
Now, having said that, your decision also has to take into account your end goal. If your goal is to become a professional software engineer and code bug-free (or better say with minimal bugs as the bug-free program doesn't exist) complex production apps for other companies, then you have a long way ahead. If your goal is to code small bots for personal use, you don't really have to go that deep in knowledge, but you will still need the basic fundamentals and OOP. You might skip the agile training (as it mainly applies if you belong in a team), design patterns and all that, but you will find it's easier to maintain your programs with this extra knowledge anyway. And whatever you do, don't skip Git!
So my best recommendation to you is get a few courses, finish a chapter/concept, test it in practice via exercises and repeat until you are satisfied with the level of knowledge that you need. Do not start with courses on how to build bots in the beginning - if you do that without having the fundamentals in place, you will fail.