Code Monkey home page Code Monkey logo

chevereto-telegram-bot's Introduction

Chevereto Telegram Bot

An easy-to-use telegram bot for your Chevereto site.

f1e505a386b52e20b55e5ad463aec0fb.png

Installation Guide

1 . Install Python3.7+ & pip
2 . Clone bot file

git clone https://github.com/M1Screw/Chevereto-Telegram-Bot.git

3 . Install dependency

pip install -r requirements.txt

4 . Copy config.ini.new to config.ini, then edit it
5 . Run bot

nohup python3 bot.py &

config.ini Example

[BOT]
MODE = PULLING or WEBHOOK
ACCESS_TOKEN = Your bot's API key. Talk to @botfather to create one if you don't have it.
WEBHOOK_URL = Your bot's Webhook URL, which you can configure via @botfather, too.
WEBHOOK_PORT = Due to python-telegram-bot's build-in HTTP server's limit, you can only choose one from 443, 80, 88 or 8443
WEBHOOK_KEY = You can create one with the following command

openssl req -newkey rsa:2048 -sha256 -nodes -keyout private.key -x509 -days 3650 -out cert.pem    

WEBHOOK_CERT = same as WEBHOOK_KEY
ADMIN_USER = Your Telegram's user id, only this user can use the bot's admin command for example /restart.
[HOST]
IMAGE_HOST = The domain name of your image host site(without "https://" part)
IMAGE_HOST_API_KEY = You can find it on https://your-image-host/dashboard/settings/api
IMAGE_HOST_RETURN_FORMAT = json

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.