A CLI tool to use Pastegram from the terminal
sudo pip install pastegram-cli # install globallypastegram-cli upload my-file.txtor read from STDIN
# implicit upload
pastegram-cli < my-file.txtor
cat my-file.txt | pastegram-clipastegram-cli fetch "https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc"
# outputs to STDOUTor write the output to a file
pastegram-cli fetch "https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc" -o the-paste.txtpastegram-cli delete TOKEN
# TOKEN is the 49 characters long string you get after uploading a paste