Interface: Message
消息对象。
Properties
animation?
optionalanimation:unknown
动画对象。
Defined in
audio?
optionalaudio:Audio
音频对象
Defined in
author_signature?
optionalauthor_signature:string
Unused
Defined in
caption?
optionalcaption:string
标题。
Defined in
caption_entities?
optionalcaption_entities:MessageEntity[]
Unused
Defined in
channel_chat_created?
optionalchannel_chat_created:true
Unused
Defined in
chat
chat:
Chat
消息所在聊天。
Defined in
contact?
optionalcontact:Contact
联系人对象。
Defined in
date
date:
number
消息发送时间(unix 时间戳)。
Defined in
delete_chat_photo?
optionaldelete_chat_photo:true
Unused
Defined in
dice?
optionaldice:Dice
骰子对象。
Defined in
document?
optionaldocument:Document
文件对象。
Defined in
edit_date?
optionaledit_date:number
消息的最后编辑时间(unix 时间戳)。
Defined in
entities?
optionalentities:MessageEntity[]
消息的中实体对象。
对于文本消息,包括但不限于:
- @ 的用户
- 识别到的 url
- 机器人命令
Defined in
forward_date?
optionalforward_date:number
转发消息时,原消息的发送时间(unix 时间戳)。
Defined in
forward_from?
optionalforward_from:User
Unused
Defined in
forward_from_chat?
optionalforward_from_chat:Chat
Unused
Defined in
forward_from_message_id?
optionalforward_from_message_id:bigint
Unused
Defined in
forward_sender_name?
optionalforward_sender_name:string
Unused
Defined in
forward_signature?
optionalforward_signature:string
Unused
Defined in
from?
optionalfrom:User
消息发送者。
Defined in
game?
optionalgame:unknown
游戏对象
Defined in
group_chat_created?
optionalgroup_chat_created:true
Unused
Defined in
invoice?
optionalinvoice:unknown
Unused
Defined in
left_chat_member?
optionalleft_chat_member:User
如果是用户退出服务器的通知消息,表示退出的用户。
Defined in
location?
optionallocation:Location
位置对象
Defined in
media_group_id?
optionalmedia_group_id:string
Unused
Defined in
message_id
message_id:
bigint
消息唯一 ID。
Defined in
migrate_from_chat_id?
optionalmigrate_from_chat_id:bigint
Unused
Defined in
migrate_to_chat_id?
optionalmigrate_to_chat_id:bigint
Unused
Defined in
new_chat_members?
optionalnew_chat_members:User[]
如果是用户进入服务器的通知消息,表示进入的用户。
Defined in
new_chat_photo?
optionalnew_chat_photo:unknown[]
Unused
Defined in
new_chat_title?
optionalnew_chat_title:string
Unused
Defined in
photo?
optionalphoto:unknown[]
图片对象。
Defined in
pinned_message?
optionalpinned_message:Message
Unused
Defined in
poll?
optionalpoll:Poll
投票对象。
Defined in
reply_markup?
optionalreply_markup:unknown
内联键盘。
Defined in
reply_to_message?
optionalreply_to_message:Message
回复消息时,原消息对象。
Defined in
sticker?
optionalsticker:unknown
Unused
Defined in
successful_payment?
optionalsuccessful_payment:unknown
Unused
Defined in
supergroup_chat_created?
optionalsupergroup_chat_created:true
是否是 supergroup 创建通知。
Defined in
text?
optionaltext:string
消息的文本内容(最大 102400KB)。
Defined in
venue?
optionalvenue:Venue
场所对象.
Defined in
via_bot?
optionalvia_bot:User
是否机器人发送的消息。
Defined in
video?
optionalvideo:Video
视频对象。
Defined in
video_note?
optionalvideo_note:VideoNote
videonote 对象。
Defined in
voice?
optionalvoice:Voice
语音对象。