gram-tgcalls
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -50,3 +50,3 @@ import { Api, TelegramClient } from 'telegram'; | ||
/** | ||
* Unmutes the audio stream. Returns `null` if not in call, `false` if already muted or `true` if successful. | ||
* Unmutes the video stream. Returns `null` if not in call, `false` if already muted or `true` if successful. | ||
*/ | ||
@@ -63,8 +63,16 @@ unmuteVideo(): boolean | null; | ||
*/ | ||
audioFinished(): boolean | null; | ||
get audioFinished(): boolean | null; | ||
/** | ||
* Tells if the video has finished streaming. Returns `null` if not in call, `true` if finished or `false` if not. | ||
*/ | ||
videoFinished(): boolean | null; | ||
get videoFinished(): boolean | null; | ||
/** | ||
* Tells if the audio stream was stopped. Returns `null` if not in call, `true` if stopped or `false` if not. | ||
*/ | ||
get audioStopped(): boolean | null; | ||
/** | ||
* Tells if the video stream was stopped. Returns `null` if not in call, `true` if stopped or `false` if not. | ||
*/ | ||
get videoStopped(): boolean | null; | ||
/** | ||
* Edits the provided participant. | ||
@@ -71,0 +79,0 @@ */ |
@@ -201,3 +201,3 @@ "use strict"; | ||
/** | ||
* Unmutes the audio stream. Returns `null` if not in call, `false` if already muted or `true` if successful. | ||
* Unmutes the video stream. Returns `null` if not in call, `false` if already muted or `true` if successful. | ||
*/ | ||
@@ -244,3 +244,3 @@ unmuteVideo() { | ||
*/ | ||
audioFinished() { | ||
get audioFinished() { | ||
if (!this.audioStream) { | ||
@@ -254,3 +254,3 @@ return null; | ||
*/ | ||
videoFinished() { | ||
get videoFinished() { | ||
if (!this.videoStream) { | ||
@@ -262,2 +262,20 @@ return null; | ||
/** | ||
* Tells if the audio stream was stopped. Returns `null` if not in call, `true` if stopped or `false` if not. | ||
*/ | ||
get audioStopped() { | ||
if (!this.audioStream) { | ||
return null; | ||
} | ||
return this.audioStream.stopped; | ||
} | ||
/** | ||
* Tells if the video stream was stopped. Returns `null` if not in call, `true` if stopped or `false` if not. | ||
*/ | ||
get videoStopped() { | ||
if (!this.videoStream) { | ||
return null; | ||
} | ||
return this.videoStream.stopped; | ||
} | ||
/** | ||
* Edits the provided participant. | ||
@@ -264,0 +282,0 @@ */ |
{ | ||
"name": "gram-tgcalls", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"main": "lib/index.js", | ||
@@ -22,10 +22,10 @@ "scripts": { | ||
"devDependencies": { | ||
"@types/node": "^16.0.0", | ||
"typedoc": "^0.21.5", | ||
"typescript": "^4.3.5" | ||
"@types/node": "^16.10.3", | ||
"typedoc": "^0.22.5", | ||
"typescript": "^4.4.3" | ||
}, | ||
"dependencies": { | ||
"telegram": "^1.8.10", | ||
"telegram": "^1.9.6", | ||
"tgcalls": "^1.0.1" | ||
} | ||
} |
27473
504
Updatedtelegram@^1.9.6