Available methods

removeChatVerification()

Removes verification from a chat that is currently verified on behalf of the organization represented by the bot. Returns True on success.

parameters

parametertyperequireddescription
chat_idnumber | stringrequiredUnique identifier for the target chat or username of the target bot or channel in the format @username

returns

boolean

usage in yaebal

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

bot.ts
import type { RemoveChatVerificationParams } from "@yaebal/types";

await bot.api.call<boolean>("removeChatVerification", {
  chat_id: 123456789,
} satisfies RemoveChatVerificationParams);

context shortcut

also available as ctx.removeChatVerification() on 16 context types — see @yaebal/contexts.

context shortcut
/** Removes verification from a chat that is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
ctx.removeChatVerification(params?: Omit<RemoveChatVerificationParams, "chat_id">)