docs(core): improved docs for some methods
This commit is contained in:
parent
a5fc092d97
commit
28eb1a6bfd
2 changed files with 5 additions and 3 deletions
|
@ -70,8 +70,6 @@ export async function getHistory(
|
||||||
/**
|
/**
|
||||||
* Maximum message ID to return.
|
* Maximum message ID to return.
|
||||||
*
|
*
|
||||||
* Unless {@link addOffset} is used, this will work the same as {@link offset}.
|
|
||||||
*
|
|
||||||
* @default `0` (disabled).
|
* @default `0` (disabled).
|
||||||
*/
|
*/
|
||||||
maxId?: number
|
maxId?: number
|
||||||
|
|
|
@ -45,7 +45,9 @@ export class MessageForwardInfo {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For "saved" messages (i.e. messages forwarded to yourself,
|
* For "saved" messages (i.e. messages forwarded to yourself,
|
||||||
* "Saved Messages"), the peer where the message was originally sent
|
* "Saved Messages"), the peer where the message was originally sent.
|
||||||
|
*
|
||||||
|
* `null` for other messages, you might want to use {@link sender} instead
|
||||||
*/
|
*/
|
||||||
fromChat(): Chat | null {
|
fromChat(): Chat | null {
|
||||||
if (!this.raw.savedFromPeer) return null
|
if (!this.raw.savedFromPeer) return null
|
||||||
|
@ -56,6 +58,8 @@ export class MessageForwardInfo {
|
||||||
/**
|
/**
|
||||||
* For messages forwarded from channels,
|
* For messages forwarded from channels,
|
||||||
* identifier of the original message in the channel
|
* identifier of the original message in the channel
|
||||||
|
*
|
||||||
|
* (only availale if {@link fromChat} is not `null`)
|
||||||
*/
|
*/
|
||||||
get fromMessageId(): number | null {
|
get fromMessageId(): number | null {
|
||||||
return this.raw.savedFromMsgId ?? null
|
return this.raw.savedFromMsgId ?? null
|
||||||
|
|
Loading…
Reference in a new issue