Git Product home page Git Product logo

simplebot_tggroups's Introduction

Telegram Groups Bridge

image

image

image

image

image

image

A SimpleBot plugin that allows to bridge Telegram and Delta Chat groups.

For channel subscriptions use: https://github.com/simplebot-org/simplebot_tgchan

Installation

To install run:

pip install simplebot-tggroups

To convert Delta Chat voice messages to mp3 before sending them to the Telegram side, pydub is used, you might need to install ffmpeg in your system, check: https://github.com/jiaaro/pydub#dependencies, for example to install it in an apt-based system:

sudo apt install ffmpeg

Configuration

See https://github.com/simplebot-org/simplebot to know how to configure the bot with an e-mail account.

Before you start using the bot, you need to get your own API ID and hash, go to https://my.telegram.org, you also need a bot token, got to @BotFather on Telegram and create a bot, then to set API ID, API hash and bot token, execute:

simplebot -a [email protected] telegram

After configuration you can start the bot:

simplebot -a [email protected] serve

Then you can start bridging Telegram and Delta Chat groups, send /help to the bot in Delta Chat for more info.

To bridge a Telegram group to a Delta Chat group:

  1. Add the bot in Telegram to your group.
  2. Send /id command in the Telegram group, copy the ID returned by the bot.
  3. Add the bot in Delta Chat to your group.
  4. Send /bridge 1234 where 1234 is the group ID obtained in the Telegram group.
  5. Then all messages sent in both groups will be relayed to the other side.

Tweaking Default Configuration

You can tweak the maximum size (in bytes) of attachments the bot will bridge:

simplebot -a [email protected] telegram --max-size 5242880

By default the bot will download attachments of up to 5MB.

simplebot_tggroups's People

Contributors

adbenitez avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  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.