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

x/mtkruto/tl/3_functions.ts>updates_getChannelDifference_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class updates_getChannelDifference_
extends Function_<enums.updates.ChannelDifference>
import { updates_getChannelDifference_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Returns the difference between the current state of updates of a certain channel and transmitted.

Constructors

new
updates_getChannelDifference_(params: { force?: true; channel: enums.InputChannel; filter: enums.ChannelMessagesFilter; pts: number; limit: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
channel: enums.InputChannel

The channel

filter: enums.ChannelMessagesFilter

Messsage filter

optional
force: true

Set to true to skip some possibly unneeded updates and reduce server-side load

limit: number

How many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100

pts: number

Persistent timestamp (see updates)

Static Properties

__F: (params: { force?: true; channel: enums.InputChannel; filter: enums.ChannelMessagesFilter; pts: number; limit: number; }) => enums.updates.ChannelDifference
readonly
[name]: string
readonly
[paramDesc]: ParamDesc