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

x/grammy/mod.ts>Api#sendVenue

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

Use this method to send information about a venue. On success, the sent Message is returned.

Parameters

chat_id: number | string

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

latitude: number

Latitude of the venue

longitude: number

Longitude of the venue

title: string

Name of the venue

address: string

Address of the venue

optional
other: Other<R, "sendVenue",
| "chat_id"
| "latitude"
| "longitude"
| "title"
| "address"
>

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#sendvenue