From 5e72aee2c8e03f4dc83a5cbf9850cc90748b9729 Mon Sep 17 00:00:00 2001 From: Matthew Rider Date: Tue, 5 Nov 2024 14:51:41 +0100 Subject: [PATCH] Remove undesired change --- app/dashboards/organization_dashboard.rb | 2 +- app/models/organization.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dashboards/organization_dashboard.rb b/app/dashboards/organization_dashboard.rb index 826f0b8ab..09efa13d9 100644 --- a/app/dashboards/organization_dashboard.rb +++ b/app/dashboards/organization_dashboard.rb @@ -25,7 +25,7 @@ class OrganizationDashboard < Administrate::BaseDashboard whats_app_more_info_message: Field::Text, whats_app_profile_about: Field::Text, signal_complete_onboarding_link: Field::Url, - whats_app_quick_reply_button_text: Field::JSONB + whats_app_quick_reply_button_text: Field::JSONB, email_from_address: Field::Email, telegram_bot_username: Field::String, telegram_bot_api_key: Field::String, diff --git a/app/models/organization.rb b/app/models/organization.rb index 2a247704e..dad451de5 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -89,7 +89,7 @@ def whats_app_onboarding_allowed? end def telegram_bot - Telegram::Bot::Client.new(telegram_bot_api_key) + Telegram.bots[id] end def twilio_instance