是否有可能加入一个小组的语音呼叫,而不加入这个小组?在电报客户端,你可以做到这一点,但我不知道如何使用电视。
发布于 2022-05-01 15:26:51
当然,用这个。我觉得这很容易理解。
from telethon import TelegramClient, sync
from pytgcalls import idle
from pytgcalls import PyTgCalls
from pytgcalls import StreamType
from pytgcalls.types.input_stream import InputAudioStream
from pytgcalls.types.input_stream import InputStream
client = TelegramClient(
'session_name',
API_ID,
API_HASH
)
client.connect()
group = client.get_entity('https://t.me/group_link')
client.disconnect()
call_py = PyTgCalls(client)
call_py.start()
call_py.join_group_call(
group.id,
InputStream(
InputAudioStream(
'input.raw',
),
),
stream_type=StreamType().local_stream,
)
idle()
https://stackoverflow.com/questions/70170378
复制相似问题