Skip to content

Why not! Especially if for some reason you can't use RocketChat's mobile application.

License

Notifications You must be signed in to change notification settings

arthur-flam/rocketchat_over_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RocketChat over Telegram

Why not! Especially if for some reason you can't use RocketChat's mobile application.

Installation

Assuming you have python3.6:

git clone git@github.com/arthur-flam/rocketchat_over_telegram.git
cd rocketchat_over_telegram
pip install .

Setup

  1. Create a telegram bot
  2. You need to set some environment variables:
ENV variable Where to find it
ROCKETCHAT_URI the rocket chat server hostname:port
ROCKETCHAT_USER_ID/ROCKETCHAT_USER_TOKEN Open RocketChat, open the devtools, and in the application data get your user_id and user_token
TELEGRAM_BOT_TOKEN Telegram gives it to you when you create the bot
TELEGRAM_USERNAME You own telegram username, e.g. @arthur_flam
TELEGRAM_BOTUSER_CHAT_ID Start a Telegram chat with your bot, then visit https://api.telegram.org/bot<yourtoken>/getUpdates to get the chat id.

Usage

rocketchat_over_telegram
rocketchat_over_telegram --restart-always

Now RocketChat messages are sent to you via the Telegram bot. Reply to continue the conversation in the last thread.

Development

pip install --editable .

Merge requests are very welcome!

Missing features:

  • Reply-to-message to continue in its thread, not in the last thread.
  • Edit sent Telegram messages to indicate unread statuses, or add reactions without duplicates.
  • Display quoted messages as quoted messages
  • Support for multiple users.
  • Do a login to RocketChat with the username/password to get the token/user_id.
  • Send notifications to telegram in case of auth errors.

About

Why not! Especially if for some reason you can't use RocketChat's mobile application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published