Telegraph-Go-Bot
Telegraph-Go-Bot copied to clipboard
Telegram Bot based on Telegra.ph API
Telegraph Go Bot
A star ⭐ from you means a lot to me !
Telegram bot to do anything related to Telegraph. Written in Golang.
Usage Guide
A detailed usage guide can be found here : Telegraph Page
Features
Deployment
Deploy to Heroku
- Tap on above button and fill
TOKEN
. - Then tap "Deploy App" below it. Wait till deploying is complete (will take atmost 2 minutes).
- After deploying is complete, tap on "Manage App"
- Check the logs to see if your bot is ready!
Local Deploying
-
Clone the repo
git clone https://github.com/StarkBotsIndustries/Telegraph-Go-Bot
-
Rename
.env.sample
to.env
and fill values -
Enter the directory
cd Telegraph-Go-Bot
-
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
- Paul Larsen for his gotgbot Library
- I wanna thank me, for my Telegraph Library
Support
Channel :- @StarkBots
Group Chat :- @StarkBotsChat