Telegram bot MoviePlanet
The database is synchronous, if anyone needs to convert to asynchronous, it takes 5 minutes. I am lazy and forgot about it at all :)
- Search for movies and TV series.
- Make posts automatically, the input link to the movie or series.
- Send posts by time to the channel (for admins).
- Change the time of sending (for admins).
- Delete unsent posts (for admins).
- Send promotional posts to all bot users and to the channel (for admins).
It works through the api of a third-party site.
There is also a small problem, it is related to the fact that the links to the shows do not open. They do not open due to the fact that when requested the server looks for the title "Referer" and if it is absent, the player will show a download error.
Solved the problem banal, bought a domain and hosting, and simply redirected from this hosting, to that link.
-
If you want to run a bot, add your token to the environment with the
API_TOKEN
key. -
In the configuration file, change the link to your group and to the site.
-
The home page of the site must take the parameter "q" example
https://yoursite.com/?q=https://film.com/Avengers: Endgame
in which the link to the movie or TV series will be passed, then the site must redirect the user to the link in the request using JS. This repository already has a redirection site written in Flask, you can check it out. -
After that you should run
start.py
in the/MoviePlanet
directory