BoKKeR / RSS-to-Telegram-Bot

RSS to Telegram python script
http://t.me/rss_t_bot
GNU General Public License v3.0
247 stars 105 forks source link

NEW Command #10

Closed horphi0815 closed 3 years ago

horphi0815 commented 3 years ago

Can you create new commands?

/load -->YT URL

I would like to trigger my YT Downloader with Curl https://github.com/manbearwiz/youtube-dl-server

via >> curl -X POST --data-urlencode "url={{url}}" http://{{host}}:8080/youtube-dl/q

BoKKeR commented 3 years ago

I dont really understand the load command, so you would enter a url, what would that do? execute curl inside of docker?

horphi0815 commented 3 years ago

Yes. you send via curl a broker message into your local network and trigger your second docker with a dedicated ip:port to execute your command. Similar like home automation. This is my command curl -X POST --data-urlencode "url={https://youtu.be/em1tS-RdvDc}" http://{192.168.1.40}:8080/youtube-dl/q

this is a youtube dl docker as described above

With your telegram application its great start interacting with your network devices ;-)

BoKKeR commented 3 years ago

Yeah this bot is for RSS, I dont see how this is RSS related at all. You should check out the underlying python-telegram package and build a separate bot for this purpose.