Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanewi11/movieplanet
Telegram bot MoviePlanet to watch movies and shows, all taken from the open api of a third-party service I have nothing to do with.
https://github.com/kanewi11/movieplanet
aiogram aiogram-bot aiogram3 aiogrambot asyncio css3 flask html5 javascript python requests sqlalchemy tasks telegram-bot
Last synced: about 2 months ago
JSON representation
Telegram bot MoviePlanet to watch movies and shows, all taken from the open api of a third-party service I have nothing to do with.
- Host: GitHub
- URL: https://github.com/kanewi11/movieplanet
- Owner: kanewi11
- License: gpl-3.0
- Created: 2022-07-13T10:31:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T20:41:49.000Z (over 1 year ago)
- Last Synced: 2023-05-11T21:35:07.419Z (over 1 year ago)
- Topics: aiogram, aiogram-bot, aiogram3, aiogrambot, asyncio, css3, flask, html5, javascript, python, requests, sqlalchemy, tasks, telegram-bot
- Language: Python
- Homepage: https://t.me/watch_films_and_serials_bot
- Size: 571 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
The database is synchronous, if anyone needs to convert to asynchronous, it takes 5 minutes. I am lazy and forgot about it at all :)
## The bot knows how:
1. Search for movies and TV series.
2. Make posts automatically, the input link to the movie or series.
3. Send posts by time to the channel (for admins).
4. Change the time of sending (for admins).
5. Delete unsent posts (for admins).
6. Send promotional posts to all bot users and to the channel (for admins).## Telegram bot for watching movies.
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
1. If you want to run a bot, add your token to the environment with the ```API_TOKEN``` key.
2. In the configuration file, change the link to your group and to the site.
3. 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.
4. After that you should run ```start.py``` in the ```/MoviePlanet``` directory