Interface: Message
消息对象。
Properties
animation
• Optional
animation: unknown
动画对象。
Defined in
audio
• Optional
audio: Audio
音频对象
Defined in
author_signature
• Optional
author_signature: string
Unused
Defined in
caption
• Optional
caption: string
标题。
Defined in
caption_entities
• Optional
caption_entities: MessageEntity
[]
Unused
Defined in
channel_chat_created
• Optional
channel_chat_created: true
Unused
Defined in
chat
• chat: Chat
消息所在聊天。
Defined in
contact
• Optional
contact: Contact
联系人对象。
Defined in
date
• date: number
消息发送时间(unix 时间戳)。
Defined in
delete_chat_photo
• Optional
delete_chat_photo: true
Unused
Defined in
dice
• Optional
dice: Dice
骰子对象。
Defined in
document
• Optional
document: Document
文件对象。
Defined in
edit_date
• Optional
edit_date: number
消息的最后编辑时间(unix 时间戳)。
Defined in
entities
• Optional
entities: MessageEntity
[]
消息的中实体对象。
对于文本消息,包括但不限于:
- @ 的用户
- 识别到的 url
- 机器人命令
Defined in
forward_date
• Optional
forward_date: number
转发消息时,原消息的发送时间(unix 时间戳)。
Defined in
forward_from
• Optional
forward_from: User
Unused
Defined in
forward_from_chat
• Optional
forward_from_chat: Chat
Unused
Defined in
forward_from_message_id
• Optional
forward_from_message_id: bigint
Unused
Defined in
forward_sender_name
• Optional
forward_sender_name: string
Unused
Defined in
forward_signature
• Optional
forward_signature: string
Unused
Defined in
from
• Optional
from: User
消息发送者。
Defined in
game
• Optional
game: unknown
游戏对象
Defined in
group_chat_created
• Optional
group_chat_created: true
Unused
Defined in
invoice
• Optional
invoice: unknown
Unused
Defined in
left_chat_member
• Optional
left_chat_member: User
如果是用户退出服务器的通知消息,表示退出的用户。
Defined in
location
• Optional
location: Location
位置对象
Defined in
media_group_id
• Optional
media_group_id: string
Unused
Defined in
message_id
• message_id: bigint
消息唯一 ID。
Defined in
migrate_from_chat_id
• Optional
migrate_from_chat_id: bigint
Unused
Defined in
migrate_to_chat_id
• Optional
migrate_to_chat_id: bigint
Unused
Defined in
new_chat_members
• Optional
new_chat_members: User
[]
如果是用户进入服务器的通知消息,表示进入的用户。
Defined in
new_chat_photo
• Optional
new_chat_photo: unknown
[]
Unused
Defined in
new_chat_title
• Optional
new_chat_title: string
Unused
Defined in
photo
• Optional
photo: unknown
[]
图片对象。
Defined in
pinned_message
• Optional
pinned_message: Message
Unused
Defined in
poll
• Optional
poll: Poll
投票对象。
Defined in
reply_markup
• Optional
reply_markup: unknown
内联键盘。
Defined in
reply_to_message
• Optional
reply_to_message: Message
回复消息时,原消息对象。
Defined in
sticker
• Optional
sticker: unknown
Unused
Defined in
successful_payment
• Optional
successful_payment: unknown
Unused
Defined in
supergroup_chat_created
• Optional
supergroup_chat_created: true
是否是 supergroup 创建通知。
Defined in
text
• Optional
text: string
消息的文本内容(最大 102400KB)。
Defined in
venue
• Optional
venue: Venue
场所对象.
Defined in
via_bot
• Optional
via_bot: User
是否机器人发送的消息。
Defined in
video
• Optional
video: Video
视频对象。
Defined in
video_note
• Optional
video_note: VideoNote
videonote 对象。
Defined in
voice
• Optional
voice: Voice
语音对象。