python3 pyro_string_gen.py
before giving the command make sure you are in the directory where this file is available
This script will ask you your api id, phone number and api hash to initialize the client after initializing it will send a verification code to the provided phone number enter the otp then bot will generate and send your string session to the saved messages.
If you want to give all the details on your own just edit the file accordingly