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>PeerSettings_

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

List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar », see here » for more info.

Constructors

new
PeerSettings_(params?: { report_spam?: true; add_contact?: true; block_contact?: true; share_contact?: true; need_contacts_exception?: true; report_geo?: true; autoarchived?: true; invite_members?: true; request_chat_broadcast?: true; geo_distance?: number; request_chat_title?: string; request_chat_date?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
add_contact: true

Whether we can add the user as contact

optional
autoarchived: true

Whether this peer was automatically archived according to privacy settings and can be unarchived

optional
block_contact: true

Whether we can block the user

optional
geo_distance: number

Distance in meters between us and this peer

optional
invite_members: true

If set, this is a recently created group chat to which new members can be invited

optional
need_contacts_exception: true

Whether a special exception for contacts is needed

optional
report_geo: true

Whether we can report a geogroup as irrelevant for this location

optional
report_spam: true

Whether we can still report the user for spam

optional
request_chat_broadcast: true

This flag is set if request_chat_title and request_chat_date fields are set and the join request » is related to a channel (otherwise if only the request fields are set, the join request » is related to a chat).

optional
request_chat_date: number

If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request » was sent.

optional
request_chat_title: string

If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel's title.

optional
share_contact: true

Whether we can share the user's contact

Static Properties

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