/railway-to-tg

Integrate Railway Project events with Telegram Chat/Channel using Railway Webhooks!

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Railway to Telegram

Integrate Railway Project events with Telegram Chat/Channel using Railway Webhooks!

One Click Self Deploy

Deploy on Railway Deploy

Manual Self Deploy

  • Fork (and Star 😜) this repo.
  • Create a telegram bot at @BotFather (for getting the bot token)
  • Make your bot admin in the channel/chat you are going to connect
  • Start @MissRose_Bot in Personal Messages, and run /id @channelorchat_username command and copy the ID(to get the id of chat/channel)
  • Make a .env file/fill your environment variables like given in .env.sample
  • Install all dependencies - yarn; yarn install
  • Run the bot - yarn start
  • Now Go to Your Railway Project -> Project Settings -> Webhooks > fill the Webhook URL as https://<your-domain>/webhook
  • Then save your webhook and tada! You are ready to go.

This project is in development and more things are being added!

Disclaimer

Not affiliated with Railway