Chat.play_video()¶
- async Chat.play_video()[source]¶
Bound method play_video of
Chat.Use as a shortcut for:
client.play_video(chat_id, path, volume=volume, muted=muted, video_stopped=video_stopped)
- Parameters:
path (
str) – Video file path or stream URL.volume (
int, optional) – Audio playback volume level from 1 to 100. Defaults to 100.muted (
bool, optional) – Whether to join the voice chat with muted microphone. Defaults to False.video_stopped (
bool, optional) – Whether to start with video paused/stopped. Defaults to False.
Example
await chat.play_video("video.mp4")
- Returns:
bool– True on success.