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

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

Search for messages.

Constructors

new
messages_search_(params: { peer: enums.InputPeer; q: string; from_id?: enums.InputPeer; saved_peer_id?: enums.InputPeer; saved_reaction?: Array<enums.Reaction>; top_msg_id?: number; filter: enums.MessagesFilter; min_date: number; max_date: number; offset_id: number; add_offset: number; limit: number; max_id: number; min_id: number; hash: bigint; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
add_offset: number
filter: enums.MessagesFilter

Filter to return only specified message types

optional
from_id: enums.InputPeer

Only return messages sent by the specified user ID

hash: bigint
max_date: number

If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned

min_date: number

If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned

offset_id: number

Only return messages starting from the specified message ID

peer: enums.InputPeer

User or chat, histories with which are searched, or (inputPeerEmpty) constructor to search in all private chats and normal groups (not channels) ». Use messages.searchGlobal to search globally in all chats, groups, supergroups and channels.

q: string

Text search request

optional
saved_peer_id: enums.InputPeer

Search within the saved message dialog » with this ID.

optional
saved_reaction: Array<enums.Reaction>
optional
top_msg_id: number

Static Properties

__F: (params: { peer: enums.InputPeer; q: string; from_id?: enums.InputPeer; saved_peer_id?: enums.InputPeer; saved_reaction?: Array<enums.Reaction>; top_msg_id?: number; filter: enums.MessagesFilter; min_date: number; max_date: number; offset_id: number; add_offset: number; limit: number; max_id: number; min_id: number; hash: bigint; }) => enums.messages.Messages
readonly
[name]: string
readonly
[paramDesc]: ParamDesc