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

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

Incomplete list of messages and auxiliary data.

Constructors

new
messages_MessagesSlice_(params: { inexact?: true; count: number; next_rate?: number; offset_id_offset?: number; messages: Array<enums.Message>; chats: Array<enums.Chat>; users: Array<enums.User>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
chats: Array<enums.Chat>

List of chats mentioned in messages

count: number

Total number of messages in the list

optional
inexact: true

If set, indicates that the results may be inexact

messages: Array<enums.Message>

List of messages

optional
next_rate: number

Rate to use in the offset_rate parameter in the next call to messages.searchGlobal

optional
offset_id_offset: number

Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.

users: Array<enums.User>

List of users mentioned in messages and chats

Static Properties

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