Send notifications to Telegram about Capistrano deployments.
-
Add this line to your application's
Gemfile
:gem 'capistrano-telegram'
-
Execute:
$ bundle
-
Require the library in your application's
Capfile
:require 'capistrano/telegram'
-
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
-
Add these lines to your application's
config/deploy.rb
file:set :telegram_bot_key, 'YOUR_BOT_ID' set :telegram_chat_id, 'YOUR_BOT_CHAT_ID'