alfem/telegram-download-daemon

Chat admin privileges are required

Closed this issue · 1 comments

Got this error message

Traceback (most recent call last):
  File "C:\Users\gilsh\Downloads\telegram-download-daemon-master\telegram-download-daemon-master\telegram-download-daemon.py", line 277, in <module>
    client.loop.run_until_complete(start())
  File "C:\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "C:\Users\gilsh\Downloads\telegram-download-daemon-master\telegram-download-daemon-master\telegram-download-daemon.py", line 271, in start
    await sendHelloMessage(client, peerChannel)
  File "C:\Users\gilsh\Downloads\telegram-download-daemon-master\telegram-download-daemon-master\telegram-download-daemon.py", line 114, in sendHelloMessage
    await client.send_message(entity, "Telegram Download Daemon "+TDD_VERSION)
  File "C:\Python39\lib\site-packages\telethon\client\messages.py", line 853, in send_message
    result = await self(request)
  File "C:\Python39\lib\site-packages\telethon\client\users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "C:\Python39\lib\site-packages\telethon\client\users.py", line 79, in _call
    result = await future
telethon.errors.rpcerrorlist.ChatAdminRequiredError: Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group (caused by SendMessageRequest)
[ERROR/2021-11-20 08:52:22,712]asyncio:Task was destroyed but it is pending!
task: <Task pending name='Task-16' coro=<worker() running at C:\Users\gilsh\Downloads\telegram-download-daemon-master\telegram-download-daemon-master\telegram-download-daemon.py:228> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000002099058C070>()]>>
[ERROR/2021-11-20 08:52:22,712]asyncio:Task was destroyed but it is pending!
task: <Task pending name='Task-17' coro=<worker() running at C:\Users\gilsh\Downloads\telegram-download-daemon-master\telegram-download-daemon-master\telegram-download-daemon.py:228> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000002099058C0A0>()]>>
alfem commented

It looks like you are not using the chat_id properly. You can not use a public group channel for this daemon.