shayaantx / botdarr

Slack/Discord/Telegram/Matrix bot for accessing radarr, sonarr, and lidarr
GNU General Public License v3.0
151 stars 13 forks source link

'Channel not allowed' when sending requests #110

Closed IaZ001 closed 1 year ago

IaZ001 commented 1 year ago

Hello,

I have just installed Botdarr using Docker Compose. My environment variables seem to be correct, but when I try to send commands to the channel, such as '!Help', I receive this message: '2023-Jul-04 11:10:52 AM [pool-5-thread-1] WARN TelegramLog - Channel test not allowed, check properties file'

Can you help me resolve this issue?

shayaantx commented 1 year ago

@IaZ001 can you post your compose file with secrets omitted?

shayaantx commented 1 year ago

If you follow https://github.com/shayaantx/botdarr/wiki/Install-Telegram-Bot

image

Your telegram private channel setting is using a url, channel ids are not urls, they are the number in the url

https://t.me/c/1156742262/2

1156742262 => channel id

IaZ001 commented 1 year ago

For sure

version: "3.8"
networks:
  dacave:
    driver: bridge

services:
 #Radarr
  radarr:
    platform: linux/x86_64
    image: lscr.io/linuxserver/radarr:latest
    container_name: radarr
    networks:
      - dacave
    environment:
      PUID: 1000
      PGID: 1000
      TZ: Indian/Mayotte
    volumes:
      - ./radarr/config:/config
      - type: bind
        source: /mnt/media
        target: /torrent

    ports:
      - 7878:7878
    restart: unless-stopped

  #Sonarr
  Sonarr:
    platform: linux/x86_64
    image: lscr.io/linuxserver/sonarr:latest
    container_name: sonarr
    volumes:
      - ./sonarr/config:/config
      - type: bind
        source: /mnt/media
        target: /torrent
    networks:
      - dacave
    environment:
        PUID: 1000
        PGID: 1000
        TZ: Indian/Mayotte
    ports:
        - 8989:8989
    restart: unless-stopped

  # Telegram bot
  botdarr:
    image: shayaantx/botdarr:latest
    container_name: botdarr
    environment:
      # telegramm settings 
      TELEGRAM_TOKEN    : BOT TOKEN
      TELEGRAM_PRIVATE_CHANNELS : https://t.me/ID
      # Radarr
      RADARR_URL: http://IP:7878
      RADARR_TOKEN: TOKEN
      RADARR_DEFAULT_PROFILE: HD - 720p/1080p
      # Sonarr
      SONARR_URL: http://IP:8989
      SONARR_TOKEN: TOKEN
      SONARR_DEFAULT_PROFILE: Any
      TZ: Indian/Mayotte
    volumes:
       - ./botdarr/logs:/home/botdarr/logs
       - ./botdarr/database:/home/botdarr/database 
IaZ001 commented 1 year ago

1156742262

When I put the numbers instead of the URL, I get an error message and the container doesn't start. image

shayaantx commented 1 year ago

@IaZ001 sorry see the rest of the documentation

Your actual telegram channels your bot can respond in. This should be a list containing the name and id of the channel, i.e., CHANNEL_NAME:CHANNEL_ID to get the channel id, right click any post in private channel and copy post link you should see something like this, https://t.me/c/1408146664/63 the id is between c// example: plex-channel1:id1,plex-channel2:id2

This is for the TELEGRAM_PRIVATE_CHANNELS field

IaZ001 commented 1 year ago

That's exaclty what i've done ...

shayaantx commented 1 year ago

@IaZ001 post an updated snippet of your docker compose with the new config

shayaantx commented 1 year ago

@IaZ001 can you see above request?

shayaantx commented 1 year ago

@IaZ001 please reopen if you still need help, see below example of what it should be

TELEGRAM_PRIVATE_CHANNELS: <channel-name>:<channel-id>