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.copyMessages

Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. 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 forwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an array of MessageId of the sent messages is returned.

Documentation

Type

CallAPI<Params.CopyMessagesParams, 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";