Don't have Telegram yet? Try it now!
https://theunixtips.com/bash-self-redirect-of-scripts-output-to-file/
bash : Self redirect of Script's output to a file