Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>RestrictionReason_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class RestrictionReason_
import { RestrictionReason_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Restriction reason.

Constructors

new
RestrictionReason_(params: { platform: string; reason: string; text: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
platform: string

Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)

reason: string

Restriction reason (porno, terms, etc.)

text: string

Error message to be shown to the user

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc