Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

ShivangKakkar/TelegraphBot

Repository files navigation

This repository is not maintained anymore and is now deprecated. It is replaced with 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

Usage

Deploy to Heroku

Deploy

  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

    git clone https://github.com/StarkBotsIndustries/TelegraphBot
  2. Edit Config.py and fill the needed variables

  3. Enter the directory

    cd TelegraphBot
  4. Run the file

    python3 main.py

Environment Variables

Mandatory Vars

  • API_ID - Get this from my.telegram.org
  • API_HASH - Get this from my.telegram.org
  • BOT_TOKEN - Get this from @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 GitHub stars GitHub watchers Maintenance

License

License: AGPL v3

Contributing

GitHub contributors

Contributions are heartily accepted.

PRs Welcome

Credits

Support

Channel :- @StarkBots

Group Chat :- @StarkBotsChat

:)

ForTheBadge made-with-python

ForTheBadge built-with-love

ForTheBadge makes-people-smile