danog\MadelineProto\GroupCall
Author: Daniil Gentili daniil@daniil.it
This update represents a Telegram group call (a video chat, a livestream or a live story).
See https://core.telegram.org/api/group-calls for more info.
Properties
$id:intGroup call ID.$accessHash:intAccess hash of the group call.$peerId:?intBot API ID of the group/channel the call is associated with, if any.$title:?stringTitle of the call, if it has one.$participantsCount:intNumber of participants.$joinMuted:boolWhether new participants join muted.$rtmpStream:boolWhether this is an RTMP livestream.$conference:boolWhether this is an E2E-encrypted conference call, not associated with any group.$creator:boolWhether we created this call.$inviteLink:?stringThe invite link of a conference call, if any.$scheduleDate:?intWhen the call is scheduled to start, if it is a scheduled call.$streamDcId:?intThe DC to use when downloading media chunks in stream mode.$discarded:boolWhether the call has ended.
Method list:
join(bool $muted = false, mixed $joinAs = NULL, (string|null) $inviteHash = NULL): \danog\MadelineProto\GroupCallleave(): \danog\MadelineProto\GroupCalldiscard(): \danog\MadelineProto\GroupCallgetCallState(): \danog\MadelineProto\GroupCall\GroupCallStategetParticipants(): array<int, \danog\MadelineProto\GroupCall\Participant>setMuted(bool $muted = true): \danog\MadelineProto\GroupCallisMuted(): boolsetTitle(string $title): \danog\MadelineProto\GroupCallinvite(mixed ...$users): \danog\MadelineProto\GroupCallexportInvite(bool $canSelfUnmute = false): stringsetOutput(mixed $participant, \danog\MadelineProto\LocalFile|\Amp\ByteStream\WritableStream $file): \danog\MadelineProto\GroupCallplay(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCallplayBlocking(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCallthen(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCallplayVideo(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCallstopVideo(): \danog\MadelineProto\GroupCallskip(): \danog\MadelineProto\GroupCallstop(): \danog\MadelineProto\GroupCallpause(): \danog\MadelineProto\GroupCallisPaused(): boolresume(): \danog\MadelineProto\GroupCallplayOnHold(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream ...$files): \danog\MadelineProto\GroupCallgetCurrent(): \danog\MadelineProto\RemoteUrl|\danog\MadelineProto\LocalFile|string|null
Methods:
join(bool $muted = false, mixed $joinAs = NULL, (string|null) $inviteHash = NULL): \danog\MadelineProto\GroupCall
Join the group call.
Note that conference calls » are
end-to-end encrypted and are not supported yet.
Parameters:
$muted:boolWhether to join muted.$joinAs:mixedPeer to join as; only video chats/livestreams » may use a peer other than ourselves.$inviteHash:(string|null)Invite hash from a video chat invite link », if any.
leave(): \danog\MadelineProto\GroupCall
Leave the group call, without ending it for the other participants.
discard(): \danog\MadelineProto\GroupCall
End the group call for all participants.
getCallState(): \danog\MadelineProto\GroupCall\GroupCallState
Get the state of the group call.
See also:
getParticipants(): array<int, \danog\MadelineProto\GroupCall\Participant>
Get all known participants, indexed by their bot API peer ID.
See also:
setMuted(bool $muted = true): \danog\MadelineProto\GroupCall
Mute or unmute our own audio stream.
Parameters:
$muted:bool
isMuted(): bool
Whether our own audio stream is muted.
setTitle(string $title): \danog\MadelineProto\GroupCall
Change the title of the group call.
Parameters:
$title:string
invite(mixed ...$users): \danog\MadelineProto\GroupCall
Invite users to the group call.
Parameters:
...$users:mixed
exportInvite(bool $canSelfUnmute = false): string
Export an invite link for this group call.
Parameters:
$canSelfUnmute:boolWhether users joining with this link may speak without asking; admins only.
setOutput(mixed $participant, \danog\MadelineProto\LocalFile|\Amp\ByteStream\WritableStream $file): \danog\MadelineProto\GroupCall
Set the output file or stream for the incoming audio of a specific participant.
Will write an OGG OPUS stream to the specified file or stream.
Parameters:
$participant:mixed$file:\danog\MadelineProto\LocalFile|\Amp\ByteStream\WritableStream
See also:
\danog\MadelineProto\LocalFile: Indicates a local file to upload.\Amp\ByteStream\WritableStream
play(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCall
Play file.
Parameters:
$file:\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream
See also:
\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\Amp\ByteStream\ReadableStream
playBlocking(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCall
Play a file, blocking until it has finished playing if a stream is provided.
Parameters:
$file:\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream
See also:
\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\Amp\ByteStream\ReadableStream
then(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCall
Play file.
Parameters:
$file:\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream
See also:
\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\Amp\ByteStream\ReadableStream
playVideo(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file): \danog\MadelineProto\GroupCall
Play the VP8 video and OPUS audio of a WebM file.
Parameters:
$file:\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream
See also:
\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\Amp\ByteStream\ReadableStream
stopVideo(): \danog\MadelineProto\GroupCall
Stop transmitting video.
skip(): \danog\MadelineProto\GroupCall
When called, skips to the next file in the playlist.
stop(): \danog\MadelineProto\GroupCall
Stops playing all files, clears the main and the hold playlist.
pause(): \danog\MadelineProto\GroupCall
Pauses the currently playing file.
isPaused(): bool
Whether the currently playing file is paused.
resume(): \danog\MadelineProto\GroupCall
Resumes the currently playing file.
playOnHold(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream ...$files): \danog\MadelineProto\GroupCall
Files to play on hold.
Parameters:
...$files:\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream
See also:
\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\Amp\ByteStream\ReadableStream
getCurrent(): \danog\MadelineProto\RemoteUrl|\danog\MadelineProto\LocalFile|string|null
Get the file that is currently being played.
Will return a string with the object ID of the stream if we’re currently playing a stream,
otherwise returns the related LocalFile or RemoteUrl.
See also:
\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\LocalFile: Indicates a local file to upload.
Generated by danog/phpdoc