Coder Social home page Coder Social logo

shivangkakkar / telegraph-go-bot Goto Github PK

View Code? Open in Web Editor NEW
39.0 1.0 18.0 42 KB

Telegram Bot based on Telegra.ph API

Home Page: https://t.me/StarkTelegraphBot

Procfile 0.03% Go 85.93% HTML 14.04%
telegram telegraph telegraph-api telegram-bot gotgbot

telegraph-go-bot's Introduction

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

telegraph-go-bot's People

Contributors

shivangkakkar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

telegraph-go-bot's Issues

Can't upload img on custom accounts

When you only upload images, it is not possible to choose an account where they will be loaded.
when uploading images It is not possible to use the command /page with the choice of account, because it only works with documents or html pages.

I can offer two options

  1. Choose default account to be able to prescribe a token or swap the already uploaded accounts, because uploading images goes to 0 account
  2. When writing the /title command, you could choose which account it will all be unloaded to, for example /title 1 test_title

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.