I want to get the list of telegram groups(name) which I am a part of. Like a text file or something else. How can I do that?
Another way - use web-version of the telegram and parse HTML. Here are steps:

create folder with only groups;
go to web-version, open this folder;
run code copy($$(".dialog-title .peer-title").map(function(e){return e.textContent})) in console, it will copy title of groups on screen into clipboard;
if you have a lot groups on several screens, list groups below and make previous step again;
join all the groups into one big list;
profit!
How to get a list of all the telegram groups I have joined?