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: 24 days 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 (7 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
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
## Usage
### Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](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
[![GitHub forks](https://img.shields.io/github/forks/StarkBotsIndustries/TelegraphBot.svg?style=social&label=Fork&maxAge=25920000)](https://github.com/StarkBotsIndustries/TelegraphBot/network/) [![GitHub stars](https://img.shields.io/github/stars/StarkBotsIndustries/TelegraphBot.svg?style=social&label=Star&maxAge=25920000)](https://github.com/StarkBotsIndustries/TelegraphBot/stargazers/) [![GitHub watchers](https://img.shields.io/github/watchers/StarkBotsIndustries/TelegraphBot.svg?style=social&label=Watch&maxAge=25920000)](https://github.com/StarkBotsIndustries/TelegraphBot/watchers/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/StarkBotsIndustries/TelegraphBot/graphs/commit-activity)## License
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
## Contributing
[![GitHub contributors](https://img.shields.io/github/contributors/StarkBotsIndustries/TelegraphBot.svg)](https://github.com/StarkBotsIndustries/TelegraphBot/graphs/contributors/)
> Contributions are heartily accepted.
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](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)
## :)
[![ForTheBadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)
[![ForTheBadge built-with-love](http://ForTheBadge.com/images/badges/built-with-love.svg)](https://github.com/StarkBotsIndustries)
[![ForTheBadge makes-people-smile](http://ForTheBadge.com/images/badges/makes-people-smile.svg)](https://github.com/StarkBotsIndustries)