import { Message } from "https://deno.land/x/grammy@v1.31.1/types.ts";
import { type Message } from "https://deno.land/x/grammy@v1.31.1/types.ts";
This object represents a message.
Properties
For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set
Message is an audio file, information about the file
Message is a general file, information about the file
Message is a photo, available sizes of the photo
Message is a sticker, information about the sticker
Message is a forwarded story
Message is a video, information about the video
Message is a video note, information about the video message
Message is a voice message, information about the file
Message is a shared contact, information about the contact
Message is a dice with random value
Message is a game, information about the game. More about games »
Message is a native poll, information about the poll
Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set
Message is a shared location, information about the location
Message contains paid media; information about the paid media
New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
A member was removed from the group, information about them (this member may be the bot itself)
A chat photo was change to this value
Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.
Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.
Service message: auto-delete timer settings changed in the chat
The group has been migrated to a supergroup with the specified identifier.
The supergroup has been migrated from a group with the specified identifier.
Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
Message is an invoice for a payment, information about the invoice. More about payments »
Message is a service message about a successful payment, information about the payment. More about payments »
Message is a service message about a refunded payment, information about the payment. More about payments »
The domain name of the website on which the user has logged in. More about Telegram Login »
Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess
Telegram Passport data
Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
Service message: user boosted the chat
Service message: forum topic created
Service message: forum topic edited
Service message: forum topic closed
Service message: forum topic reopened
Service message: a scheduled giveaway was created
The message is a scheduled giveaway message
A giveaway with public winners was completed
Service message: a giveaway without public winners was completed
Service message: video chat scheduled
Service message: video chat started
Service message: video chat ended
Service message: new participants invited to a video chat
Service message: data sent by a Web App