Skip to content

ShivangKakkar/Telegraph-Go-Bot

Repository files navigation

A star ⭐ from you means a lot to me !

Telegram bot to do anything related to Telegraph. Written in Golang.

Open Source Love svg1

Usage Guide

A detailed usage guide can be found here : Telegraph Page

Features

Deployment

Deploy to Heroku

Deploy

  1. Tap on above button and fill 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/Telegraph-Go-Bot
  2. Rename .env.sample to .env and fill values

  3. Enter the directory

    cd Telegraph-Go-Bot
  4. Run all the files in the folder

    go run .

Environment Variables

Mandatory Vars

  • TOKEN - Get this from @BotFather
  • DATABASE_URL - Postgres Database URL. If you are deploying on Heroku, they will automatically provide it.

Non-Mandatory Vars

  • OWNER_ID - Your Telegram ID [Recommended To Set]
  • LOG_CHAT - Log errors to a Telegram Group. Must be a Chat ID of format -10012345678.
  • MUST_JOIN - Telegram Chat where users must join to use the bot. Must be a Chat ID of format -10012345678.

Credits

PRs Welcome

Support

Channel :- @StarkBots

Group Chat :- @StarkBotsChat

:)

ForTheBadge made-with-go

ForTheBadge built-with-love

ForTheBadge makes-people-smile

Releases

No releases published

Packages

No packages published