fix(core): removed assertTrue from setOffline
This commit is contained in:
parent
d8e36f2233
commit
09c2122a6d
1 changed files with 1 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
import { assertTrue } from '../../../utils/type-assertions.js'
|
||||
import { ITelegramClient } from '../../client.types.js'
|
||||
|
||||
/**
|
||||
|
@ -7,10 +6,8 @@ import { ITelegramClient } from '../../client.types.js'
|
|||
* @param offline Whether the user is currently offline
|
||||
*/
|
||||
export async function setOffline(client: ITelegramClient, offline = true): Promise<void> {
|
||||
const r = await client.call({
|
||||
await client.call({
|
||||
_: 'account.updateStatus',
|
||||
offline,
|
||||
})
|
||||
|
||||
assertTrue('account.updateStatus', r)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue