Giter VIP home page Giter VIP logo

chat_match_telegram_bot's Introduction

Introduction

This is a proof of concept for an anonymous chat.
You can find strangers to talk through the program.

Usage

Requires Python3 (It's tested on python 3.7.3)

  1. Clone this project to your server side.

    git clone https://github.com/keoy7am/chat_match_telegram_bot.git

  2. Install python dependencies with pip

    pip3 install -r requirements.txt

  3. Setting up your bot config Config File Path:

    bot_poc/config.py

    The following are the configs you need to adjust:

    • BOT_API_KEY

      "1234567890:ABCDEFGHIJKKKKKKKKKK" (example)
      If you don't have token,check here.

    • BOT_HOOK_URL

      "https://Domainnnnnnnnnnnnn/hook" (example)
      Note: Your protocol must be https!

    Please put your bot token and webhook callback uri in the file.

Supported forwarding message types

  • text
  • photo
  • video
  • document
  • animation
  • voice
  • sticker
  • video_note

TODO List

  • Decoupling data access layer
    • The program is depend on the Redis database for chat pairing data access now. If you abstract the data access behavior,
      You can support the use of other databases.
  • Implement something to prevent resource competition
    • When the number of users is large,
      There may be a situation where a queue is matched to different people.
  • Globalization
    • Match by user's language
    • Reply based on user's language (Default:English)

chat_match_telegram_bot's People

Contributors

keoy7am avatar dependabot[bot] 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.