Giter Site home page Giter Site logo

chaddi-tg's Introduction

ChaddiBot

http://t.me/ChaddiBot

CircleCI

A tailor made (and mediocre) Telegram Bot written in Python 3.

Setup and Deployment

python3 -m venv .env
source .env/bin/activate
  • Install from requirements.txt
cd chaddi-tg
pip install -r requirements.txt
  • Create config.py in src/
  • Add src/config.py with relevant information
# Bot Username
bot_username = "ChaddiBot"

# Telegram Bot API Token
tg_bot_token = "YOUR-TG-BOT-API-TOKEN-HERE"

# Telegram Webhook URL
tg_webhook_url = "https://chaddibot.com/"

# Whether runnning as dev or not
is_dev = True

# Choose which Text to Speech Engine to use.
tts_engine = "gTTS" # Google TTS
  • Run locally with python bot_chaddi.py.
  • Run in prod with ./run_prod.sh.

/mom handler

The /mom handler uses spaCy library. It needs to be installed with the English language model.

python -m spacy download en_core_web_sm

WebM converter

WebM files are converted into mp4 by src/handlers/webm_converter.py using ffmpeg. Make sure to install that.

Webhook conectivity

Refer to python-telegram-bot's official documentation

To check if your setup is correct, do a GET at https://api.telegram.org/bot{my_bot_token}/getWebhookInfo.

chaddi-tg's People

Contributors

arkits avatar vcidst avatar

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.