How to automatically send screenshot to someone on Telegram

sg flag

I want to send screenshots automatically to someone as soon as I capture my screen. I can use telegram-cli to send the screenshot but I can't figure out that how can I chose the photo on my clipboard to send. So what will be the solution, writing a bash script to send file from clipboard or sending latest picture from the screenshot directory. How can I achive that?

How can I write a bash script that looks for the screenshot folder and if a new file got created then it will send it.

or It will look to my clipboard so when I take a screenshot it sends the photo on my clipboard.


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.