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

Function media_message

tests/test_bot.py:139–142  ·  view source on GitHub ↗
(bot, chat_id)

Source from the content-addressed store, hash-verified

137
138@pytest.fixture
139async def media_message(bot, chat_id):
140 # mostly used in tests for edit_message and hence can't be reused
141 with data_file("telegram.ogg").open("rb") as f:
142 return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10)
143
144
145@pytest.fixture(scope="module")

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…