Irssi to Telegram bridge
- Copy telegram.pl to
~/.irssi/scripts
- Copy telegram.cfg to
~/.irssi
- Create a new bot as explained here: https://core.telegram.org/bots#6-botfather
- Load the script in irssi using
/load telegram.pl
- Write a telegram message to your bot and take a look at the irssi logs. There should be an error
telegram message from unknown user <user>, id <id>
- Adapt telegram.cfg with your bot id and the userid from step 4
- Reload the bot using
/load telegram.pl
- That's all
- The script transfers all irssi messages (except yours) that match the configured pattern to the bot
- all messages to the bot are forwarded to irssi:
- normally to the last channel you received a message from
- you can specify a channel with:
#<channel> <message>