MarshalX / tgcalls

Voice chats, private incoming and outgoing calls in Telegram for Developers
https://t.me/tgcallslib
GNU Lesser General Public License v3.0
523 stars 93 forks source link

Use groupcall_default_join_as #83

Closed rojvv closed 3 years ago

MarshalX commented 3 years ago

Do you try to run you PR? It doesnt works. Its occurred when default join as exists and join_as arg to start not passed

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-46' coro=<GroupCallNative.__emit_join_payload_callback.<locals>._() done, defined at /Users/marshal/projects/tgcalls/tgcalls/pytgcalls/pytgcalls/group_call_native.py:598> exception=PeerIdInvalid('[400 PEER_ID_INVALID]: The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it (caused by "phone.JoinGroupCall")')>
Traceback (most recent call last):
  File "/Users/marshal/projects/tgcalls/tgcalls/pytgcalls/pytgcalls/group_call_native.py", line 600, in _
    response = await self.client.send(functions.phone.JoinGroupCall(
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/methods/advanced/send.py", line 77, in send
    r = await self.session.send(
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/session/session.py", line 425, in send
    return await self._send(data, timeout=timeout)
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/session/session.py", line 395, in _send
    RPCError.raise_it(result, type(data))
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/errors/rpc_error.py", line 78, in raise_it
    raise getattr(
pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid: [400 PEER_ID_INVALID]: The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it (caused by "phone.JoinGroupCall")
rojvv commented 3 years ago

Do you try to run you PR? It doesnt works. Its occurred when default join as exists and arg to start not passed

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-46' coro=<GroupCallNative.__emit_join_payload_callback.<locals>._() done, defined at /Users/marshal/projects/tgcalls/tgcalls/pytgcalls/pytgcalls/group_call_native.py:598> exception=PeerIdInvalid('[400 PEER_ID_INVALID]: The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it (caused by "phone.JoinGroupCall")')>
Traceback (most recent call last):
  File "/Users/marshal/projects/tgcalls/tgcalls/pytgcalls/pytgcalls/group_call_native.py", line 600, in _
    response = await self.client.send(functions.phone.JoinGroupCall(
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/methods/advanced/send.py", line 77, in send
    r = await self.session.send(
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/session/session.py", line 425, in send
    return await self._send(data, timeout=timeout)
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/session/session.py", line 395, in _send
    RPCError.raise_it(result, type(data))
  File "/opt/homebrew/lib/python3.9/site-packages/pyrogram/errors/rpc_error.py", line 78, in raise_it
    raise getattr(
pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid: [400 PEER_ID_INVALID]: The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it (caused by "phone.JoinGroupCall")

Did you really interact with the peer?

rojvv commented 3 years ago

I'll try it myself.

MarshalX commented 3 years ago

Interact? Its default_join_as_peer ;d

rojvv commented 3 years ago

Weird :(

rojvv commented 3 years ago

I can't install my fork. I get two pages of red text. I tried upgrading pip.

nitanmarcel commented 3 years ago

@MarshalX commented on May 14, 2021, 9:38 AM GMT+3:

Interact? Its default_join_as_peer ;d

It's still an user. Probably pyrogram needs to cache it first