Capistrano - Telegram Notification
Send notifications to Telegram about Capistrano deployments.
Installation
-
Add this line to your application's
Gemfile:gem 'capistrano-telegram'
-
Execute:
$ bundle -
Require the library in your application's
Capfile:require 'capistrano/telegram'
Prerequisites
-
Create a new bot (refer to the official Telegram guide here) and take note of the token generated.
-
Include your bot in the desired chat
-
To get the
chat_id, go to: https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates
Configuration
-
Add these lines to your application's
config/deploy.rbfile:set :telegram_bot_key, 'YOUR_BOT_ID' set :telegram_chat_id, 'YOUR_BOT_CHAT_ID'