MarshalX / tgcalls

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

Can't install pytgcalls[pyrogram] on venv #187

Closed sistematico closed 1 year ago

sistematico commented 1 year ago
pip install pytgcalls[pyrogram] 
zsh: no matches found: pytgcalls[pyrogram]

Python 3.10.8 pip 22.2.2

Using Arch Linux.

MarshalX commented 1 year ago

You forgot to add "

MarshalX commented 1 year ago

pip install "pytgcalls[pyrogram]"

Try this. Moreover I recommend to use only dev version of the lib

pip install pytgcalls==3.0.0.dev22 Examples: https://gist.github.com/MarshalX/3c99fcae532178928d93a7aae6f0efde

sistematico commented 1 year ago
/home/lucas/music-bot/main.py:34: DeprecationWarning: There is no current event loop
  asyncio.get_event_loop().run_until_complete(main(pyro_client))
tgcalls v3.0.0.5 DEV, Copyright (C) 2020-2021 Il`ya (Marshal) <https://github.com/MarshalX>
Licensed under the terms of the GNU Lesser General Public License v3 (LGPLv3) 

Task exception was never retrieved
future: <Task finished name='Task-59' coro=<GroupCallBase.__emit_join_payload_callback.<locals>._() done, defined at /home/lucas/music-bot/venv/lib/python3.10/site-packages/pytgcalls/implementation/group_call_base.py:173> exception=BotMethodInvalid('Telegram says: [400 BOT_METHOD_INVALID] - The method can\'t be used by bots (caused by "phone.JoinGroupCall")')>
Traceback (most recent call last):
  File "/home/lucas/music-bot/venv/lib/python3.10/site-packages/pytgcalls/implementation/group_call_base.py", line 180, in _
    await self.mtproto.join_group_call(
  File "/home/lucas/music-bot/venv/lib/python3.10/site-packages/pytgcalls/mtproto/pyrogram_bridge.py", line 211, in join_group_call
    response = await self.client.send(
  File "/home/lucas/music-bot/venv/lib/python3.10/site-packages/pyrogram/methods/advanced/invoke.py", line 79, in invoke
    r = await self.session.invoke(
  File "/home/lucas/music-bot/venv/lib/python3.10/site-packages/pyrogram/session/session.py", line 361, in invoke
    return await self.send(query, timeout=timeout)
  File "/home/lucas/music-bot/venv/lib/python3.10/site-packages/pyrogram/session/session.py", line 331, in send
    RPCError.raise_it(result, type(data))
  File "/home/lucas/music-bot/venv/lib/python3.10/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it
    raise getattr(
pyrogram.errors.exceptions.bad_request_400.BotMethodInvalid: Telegram says: [400 BOT_METHOD_INVALID] - The method can't be used by bots (caused by "phone.JoinGroupCall")
rojvv commented 1 year ago

@sistematico That is not related to this issue.

sistematico commented 1 year ago

@sistematico That is not related to this issue.

Sure, thank you.

rojvv commented 1 year ago

You're welcome.