you could use cursor (or any other ai ide) to build basically almost any type of bots you want. Before starting would be a good idea to prepare terms of reference of the project you want to build. to do that you could just explain your idea to ai (inside cursor as well) and ask it to write you a terms of reference to build a telegram bot.
refine terms of references if you think something is missing (or just too much for now) and ask ai to build it in a "modular and sclalable way, and simultaneously making notes in a separate files on the progress and bot's features". the notes will help you in case ai starts to hallucinate and forgets what is going on
if something goes terribly wrong, just start a new chat using the notes so it can catch up and keep building
mind ai models that you are using, I'd suggest to go with claude 3.7 or gpt4.1 in the beginning