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

Function video

tests/_files/test_video.py:53–62  ·  view source on GitHub ↗
(bot, chat_id)

Source from the content-addressed store, hash-verified

51# Override `video` fixture to provide start_timestamp
52@pytest.fixture(scope="module")
53async def video(bot, chat_id):
54 # The `video` object returned here does not have the `qualities` attribute.
55 # Tests using actual VideoQuality objects from real Telegram responses
56 # are implemented separately in `test_videoquality`.
57 with data_file("telegram.mp4").open("rb") as f:
58 return (
59 await bot.send_video(
60 chat_id, video=f, start_timestamp=VideoTestBase.start_timestamp, read_timeout=50
61 )
62 ).video
63
64
65class VideoTestBase:

Callers

nothing calls this directly

Calls 2

data_fileFunction · 0.90
send_videoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…