Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Channel not allowed' when sending requests #110

Closed
IaZ001 opened this issue Jul 4, 2023 · 9 comments
Closed

'Channel not allowed' when sending requests #110

IaZ001 opened this issue Jul 4, 2023 · 9 comments
Assignees
Labels
question Further information is requested telegram

Comments

@IaZ001
Copy link

IaZ001 commented Jul 4, 2023

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
Copy link
Owner

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

@shayaantx
Copy link
Owner

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
Copy link
Author

IaZ001 commented Jul 4, 2023

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
Copy link
Author

IaZ001 commented Jul 4, 2023

1156742262

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

@shayaantx shayaantx self-assigned this Jul 4, 2023
@shayaantx shayaantx added question Further information is requested telegram labels Jul 4, 2023
@shayaantx
Copy link
Owner

@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
Copy link
Author

IaZ001 commented Jul 4, 2023

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

@shayaantx
Copy link
Owner

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

@shayaantx
Copy link
Owner

@IaZ001 can you see above request?

@shayaantx
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested telegram
Projects
None yet
Development

No branches or pull requests

2 participants