Available methods

removeUserVerification()

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

parameters

parametertyperequireddescription
user_idnumberrequiredUnique identifier of the target user

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 { RemoveUserVerificationParams } from "@yaebal/types";

await bot.api.call<boolean>("removeUserVerification", {
  user_id: 123456789,
} satisfies RemoveUserVerificationParams);

context shortcut

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

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