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

x/grammy_types/mod.ts>Message.CommonMessage

Type declarations of the Telegram Bot API.
Go to Latest
interface Message.CommonMessage
implements ServiceMessage
import { type Message } from "https://deno.land/x/grammy_types@v3.2.0/mod.ts";
const { CommonMessage } = Message;

Properties

optional
forward_from: User

For forwarded messages, sender of the original message

optional
forward_from_chat: Chat

For messages forwarded from channels or from anonymous administrators, information about the original sender chat

optional
forward_from_message_id: number

For messages forwarded from channels, identifier of the original message in the channel

optional
forward_signature: string

For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present

optional
forward_sender_name: string

Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages

optional
forward_date: number

For forwarded messages, date the original message was sent in Unix time

optional
is_automatic_forward: true

True, if the message is a channel post that was automatically forwarded to the connected discussion group

optional
reply_to_message: ReplyMessage

For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.

optional
via_bot: User

Bot through which the message was sent

optional
edit_date: number

Date the message was last edited in Unix time

optional
has_protected_content: true

True, if the message can't be forwarded

optional
author_signature: string

Signature of the post author for messages in channels, or the custom title of an anonymous group administrator

optional
reply_markup: InlineKeyboardMarkup

Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.