Skip to main content

Built and signed on GitHub Actions

Code-generated and Auto-published Telegram Bot API types

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a month ago (8.3.3)
property APIMethods.copyMessage

Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.

Documentation

Type

CallAPI<Params.CopyMessageParams, Objects.TelegramMessageId>

Add Package

deno add jsr:@gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

---- OR ----

Import directly with a jsr specifier

import { type APIMethods } from "jsr:@gramio/types";

Add Package

npx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

Add Package

yarn dlx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

Add Package

pnpm dlx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

Add Package

bunx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";