diff --git a/src/components/communitySettings/communityPlatforms/TcTelegram/TcTelegramIntegrationDialog.tsx b/src/components/communitySettings/communityPlatforms/TcTelegram/TcTelegramIntegrationDialog.tsx index 9ce1cdd..8c7e992 100644 --- a/src/components/communitySettings/communityPlatforms/TcTelegram/TcTelegramIntegrationDialog.tsx +++ b/src/components/communitySettings/communityPlatforms/TcTelegram/TcTelegramIntegrationDialog.tsx @@ -22,6 +22,7 @@ import { StorageService } from '@/services/StorageService'; import { IntegrationPlatform } from '@/utils/enums'; import TcCommunityPlatformIcon from '../TcCommunityPlatformIcon'; +import { isProduction } from '@/rainbowKitConfig'; interface TcTelegramIntegrationDialogProps { isOpen: boolean; @@ -166,32 +167,44 @@ const TcTelegramIntegrationDialog: React.FC< + + Note: Activity in your telegram group will be analysed from + the moment you complete this setup. Previous activity can not be + analysed. + Step 1: Add the bot + + To add the bot, you must have the "Add New Admins"{' '} + privilege. +
  1. - Add @TogetherCrewBot to your - group or channel. + Add{' '} + + {isProduction + ? '@TogetherCrewBot' + : '@TogetherCrewStagingBot'} + {' '} + to your telegram group or channel.
  2. - Enable Admin Rights and disable other privileges. + Find the bot in your list of members and right click then + select promote to admin, then remove all permissions.
  3. - Press Add Bot as Admin and confirm. + In the chat of your telegram group, copy the command below to + verify the bot.
- - Note: To add the bot, you must have the "Add New Admins" - privilege. -
diff --git a/src/rainbowKitConfig.ts b/src/rainbowKitConfig.ts index 1e88383..8ecb3db 100644 --- a/src/rainbowKitConfig.ts +++ b/src/rainbowKitConfig.ts @@ -4,7 +4,7 @@ import { http } from 'wagmi'; import { conf } from './configs'; -const isProduction = conf.IS_MAINNET === 'true'; +export const isProduction = conf.IS_MAINNET === 'true'; export const SUPPORTED_CHAINS: Chain[] = isProduction ? [arbitrum]