fix(core): removed assertTrue from setOffline

This commit is contained in:
alina 🌸 2024-06-12 19:00:38 +03:00
parent d8e36f2233
commit 09c2122a6d
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -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)
}