This is a bot who can connect IRC channels with Telegram chat groups.
- If you have not used telegram-cli before, run it first, and set the correct phone number to log in.
- Create chat groups using
create_group_chat
command intelegram-cli
, and usedialog_list
to check wheather the groups are created successfully. Then exit the client. - Run
telegram-cli -I
.-I
is needed to make the client use IDs instead of names. Rundialog_list
to get chat group IDs and runcontact_list
to get your IDs. Then exit the client. - Edit the
config.py
file.- Set the
me
to your IDs to avoid the bot sending duplicated message. - Set
bindings
to bind IRC channels with Telegram chats. Elements inbinddings
tuple are tuples, whose first element is IRC channel and the second element is Telegram chat ID. blacklist
inirc
is a list which contains some nicks in IRC. The messages of these nicks won't be forwarded to Telegram.
- Set the
- Start the
telegram-cli
usingtelegram -I -d -P <port>
, where<port>
is the telegram client port you filled inconfig.py
file, and-I
is needed,-d
is optional. - Start the bot using
python3 teleirc.py
, then it will join the channels automatically and forwards the messages between Telegram and IRC. - 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.
This software is released with MIT License. See LICENSE
file for more details.