Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ShivangKakkar/TelegraphBot
https://t.me/StarkBots
https://github.com/ShivangKakkar/TelegraphBot
Last synced: 3 months ago
JSON representation
https://t.me/StarkBots
- Host: GitHub
- URL: https://github.com/ShivangKakkar/TelegraphBot
- Owner: ShivangKakkar
- License: agpl-3.0
- Archived: true
- Created: 2021-08-16T18:58:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-07T23:53:06.000Z (almost 3 years ago)
- Last Synced: 2024-05-19T02:00:01.669Z (9 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 25
- Watchers: 1
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- BotList - Telegraph Bot - Telegraph Media Uploader [Deprecated] (Telegram Bot List / List of Source Codes)
README
# [Better use Telegraph-Go-Bot](https://github.com/StarkBotsIndustries/Telegraph-Go-Bot)
### This repository is not maintained anymore and is now deprecated. It is replaced with [Telegraph-Go-Bot](https://github.com/StarkBotsIndustries/Telegraph-Go-Bot), which is written in Golang and has much more features.
# Telegraph Bot
> A star ⭐ from you means a lot to us !
Telegram bot to upload media to telegra.ph
[](https://github.com/ellerbrock/open-source-badges/)
## Usage
### Deploy to Heroku
[](https://heroku.com/deploy?template=https://github.com/StarkBotsIndustries/TelegraphBot)
1. Tap on above button and fill `API_ID`, `API_HASH`, `BOT_TOKEN`.
2. Then tap "Deploy App" below it. Wait till deploying is complete (will take atmost 2 minutes).
3. After deploying is complete, tap on "Manage App"
4. Check the logs to see if your bot is ready!### Local Deploying
1. Clone the repo
```markdown
git clone https://github.com/StarkBotsIndustries/TelegraphBot
```2. Edit `Config.py` and fill the needed variables
3. Enter the directory
```markdown
cd TelegraphBot
```
5. Run the file
```markdown
python3 main.py
```## Environment Variables
#### Mandatory Vars
- `API_ID` - Get this from [my.telegram.org](https://my.telegram.org/auth)
- `API_HASH` - Get this from [my.telegram.org](https://my.telegram.org/auth)
- `BOT_TOKEN` - Get this from [@BotFather](https://t.me/BotFather)
- `OWNER_ID` - Your Telegram ID
- `DATABASE_URL` - Will be automatically added by Heroku.
#### Optional Vars> Don't forget to add your bot in the chat you fill in MUST_JOIN.
- `MUST_JOIN` - Username/ID of your telegram channel/group.
#### Owner Special Command
- `/stats` - Get Total Users and Chats using your bot.
## Functions
> More features soon, this is a minimal example :)
Upload one of the below supported media type to Telegra.ph
1) Image
2) Video
3) Sticker
4) Gifs or Animation
5) Videos
6) Video Note
7) Document (Video/Photo/Gif)## To-Do
> That's on you mainly...
## Stats
[](https://github.com/StarkBotsIndustries/TelegraphBot/network/) [](https://github.com/StarkBotsIndustries/TelegraphBot/stargazers/) [](https://github.com/StarkBotsIndustries/TelegraphBot/watchers/)
[](https://github.com/StarkBotsIndustries/TelegraphBot/graphs/commit-activity)## License
[](https://www.gnu.org/licenses/agpl-3.0)
## Contributing
[](https://github.com/StarkBotsIndustries/TelegraphBot/graphs/contributors/)
> Contributions are heartily accepted.
[](http://makeapullrequest.com)
## Credits
- [Dan Tès](https://github.com/delivrance) for his [Pyrogram](https://docs.pyrogram.org) Library
## Support
Channel :- [@StarkBots](https://t.me/StarkBots)
Group Chat :- [@StarkBotsChat](https://t.me/StarkBotsChat)
## :)
[](https://www.python.org/)
[](https://github.com/StarkBotsIndustries)
[](https://github.com/StarkBotsIndustries)