Git Product home page Git Product logo

telegram2irc's Introduction

Description

This is a bot who can connect IRC channels with Telegram chat groups.

Dependencies

Usage

  1. If you have not used telegram-cli before, run it first, and set the correct phone number to log in.
  2. Create chat groups using create_group_chat command in telegram-cli, and use dialog_list to check wheather the groups are created successfully. Then exit the client.
  3. Run telegram-cli -I. -I is needed to make the client use IDs instead of names. Run dialog_list to get chat group IDs and run contact_list to get your IDs. Then exit the client.
  4. Edit the config.py file.
    1. Set the me to your IDs to avoid the bot sending duplicated message.
    2. Set bindings to bind IRC channels with Telegram chats. Elements in binddings tuple are tuples, whose first element is IRC channel and the second element is Telegram chat ID.
    3. blacklist in irc is a list which contains some nicks in IRC. The messages of these nicks won't be forwarded to Telegram.
  5. Start the telegram-cli using telegram -I -d -P <port>, where <port> is the telegram client port you filled in config.py file, and -I is needed, -d is optional.
  6. Start the bot using python3 teleirc.py, then it will join the channels automatically and forwards the messages between Telegram and IRC.
  7. Add the bot as a contact on other Telegram accounts, and send .help to it, you can get the information about how to join a chat group, how to change the nick and etc.

TODO

License

This software is released with MIT License. See LICENSE file for more details.

telegram2irc's People

Contributors

zsrkmyn avatar

Watchers

James Cloos avatar Quanyang Liu 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.