UNPKG

tgsnake

Version:

Telegram MTProto framework for nodejs.

22 lines (21 loc) 891 B
import { type Entities } from '../../platform.node.js'; import { ReplyParameters } from '../../Utilities.js'; import * as ReplyMarkup from '../../TL/Messages/ReplyMarkup.js'; import type { Snake } from '../../Client/index.js'; import { Message } from '../../TL/Messages/index.js'; export interface sendMessageParams { disableWebPagePreview?: boolean; disableNotification?: boolean; replyToMessageId?: number; replyToStoryId?: number; replyParameters?: ReplyParameters; messageThreadId?: number; scheduleDate?: Date; sendAsChannel?: bigint | string; protectContent?: boolean; replyMarkup?: ReplyMarkup.TypeReplyMarkup; entities?: Array<Entities>; parseMode?: 'html' | 'markdown'; invertMedia?: boolean; } export declare function sendMessage(client: Snake, chatId: bigint | string, text: string, more?: sendMessageParams): Promise<Message>;