import { type Message } from "https://deno.land/x/mtkruto@0.1.101/types/3_message.ts";
This object represents a message.
Properties
Unique identifier of a message thread to which the message belongs; for supergroups only
Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
Date the message was sent in Unix time
Conversation the message belongs to
For forwarded messages, sender of the original message
For messages forwarded from channels or from anonymous administrators, information about the original sender chat
For messages forwarded from channels, identifier of the original message in the channel
For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present
Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages
For forwarded messages, date the original message was sent in Unix time
True, if the message is a channel post that was automatically forwarded to the connected discussion group
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.
Bot through which the message was sent
Date the message was last edited in Unix time
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
Inline keyboard attached to the message. login_url
buttons are represented as ordinary url
buttons.
Message is a photo, available sizes of the photo
Message is a general file, information about the file
Message is a video, information about the video
Message is a sticker, information about the sticker
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 voice message, information about the file
Message is an audio file, information about the file
Message is a dice with random value
Message is a video note, information about the video message
Message is a shared contact, information about the contact
Message is a game, information about the game.
New poll state. Bots receive only updates about stopped polls and polls, which were sent by the bot.
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
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.
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 is itself a reply.
Service message: the user allowed the bot added to the attachment menu to write messages
Service message: forum topic created
Service message: forum topic edited
Service message: video chat scheduled