MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / voice

Function voice

tests/_files/test_voice.py:49–51  ·  view source on GitHub ↗
(bot, chat_id)

Source from the content-addressed store, hash-verified

47
48@pytest.fixture(scope="module")
49async def voice(bot, chat_id):
50 with data_file("telegram.ogg").open("rb") as f:
51 return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice
52
53
54class VoiceTestBase:

Callers

nothing calls this directly

Calls 2

data_fileFunction · 0.90
send_voiceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…