Get Telegram Channel/Group members count and save it to csv.
pip install requests
api = 'https://api.telegram.org/<Your Bot Token>/getChatMembersCount?chat_id=@'+chat_id
api_name = 'https://api.telegram.org/<Your Bot Token>/getChat?chat_id=@'+chat_id
Change "<Your Bot Token>" to your own bot token.
csvFile = open("data_output.csv", "a")
data_output.csv is output file
chat_list = ["Sample_1","Sample_2"]
Replace Sample_1 Sample_2 with a real chat id