import { Message } from "https://dotland.deno.dev/x/grammy@v1.31.0/types.ts";
import { type Message } from "https://dotland.deno.dev/x/grammy@v1.31.0/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 a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set
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)
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
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 »
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
Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
Service message: a giveaway without public winners was completed
Service message: new participants invited to a video chat