there is an optional parameter which was written in pastebin api: “api_paste_format”:“python”. this actually tells that which medium is used. but I can’t understand what is the use of it in file opening.
python:Post requests
Hello Roshan, no issue must be there in opening the file. It will open as a normal text file with the code written in that.
Can you pls share your code for the same so that I can check if there is any mistake or not.
Thanks 
Happy Coding !!