Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>Context#reply

The Telegram Bot Framework.
Very Popular
Latest
method Context.prototype.reply
Re-export
import { Context } from "https://deno.land/x/grammy@v1.30.1/mod.ts";

Context-aware alias for api.sendMessage. Use this method to send text messages. On success, the sent Message is returned.

Parameters

text: string

Text of the message to be sent, 1-4096 characters after entities parsing

optional
other: Other<"sendMessage", "chat_id" | "text">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#sendmessage