Simple Telegram chat bot that downloads GIF, WEBM, and MP4 by URL and sends them back as properly encoded Telegram MP4 videos.
Your bot should be added to a group as an admin (otherwise you should disable privacy mode for it).
> @memes2telegram https://img-9gag-fun.9cache.com/photo/ID.webm
pip install poetry
poetry install --no-root
poetry run python main.py
You will need supply absolute path to project on mounting the volume
docker build -t memes2telegram .
docker run -v d:/memes2telegram:/bot --name memes2telegram -d memes2telegram
# docker run -v d:/memes2telegram:/bot -e BOT_TOKEN=XXX --name memes2telegram -d memes2telegram run python main.py
# docker run --rm -v d:/memes2telegram:/bot memes2telegram lock
# docker run --rm -v d:/memes2telegram:/bot memes2telegram add httpx
# docker run --rm -v d:/memes2telegram:/bot memes2telegram add -G dev pytest_httpx
# docker run --rm -v d:/memes2telegram:/bot memes2telegram run ruff check --output-format=github .
# docker run --rm -v d:/memes2telegram:/bot memes2telegram run pytest -n auto
https://leonardo.osnova.io/<ID>/-/format/mp4/
https://img-9gag-fun.9cache.com/photo/<ID>.webm
https://img-9gag-fun.9cache.com/photo/<ID>.mp4
http://imgX.joyreactor.cc/pics/post/<ID>.gif
http://joyreactor.cc/post/<ID>/
(it will try to send all pics inside the post as albums)https://www.instagram.com/reel/<ID>/
https://www.instagram.com/p/<ID>/
/start
- Outputs current running version of the bot/sword
- Get your daily sword measurement (knights only)/fortune
- Receive your daily fortune cookie/nsfw
- Send scroll-height curtain to hide NSFW content above