Message: Fix mention without username (#1625)
This commit is contained in:
parent
9119a1afdd
commit
5cecb63cef
@ -1031,7 +1031,7 @@ function buildApiMessageEntity(entity: GramJs.TypeMessageEntity): ApiMessageEnti
|
|||||||
type,
|
type,
|
||||||
offset,
|
offset,
|
||||||
length,
|
length,
|
||||||
...('userId' in entity && typeof entity.userId === 'number' && { userId: entity.userId }),
|
...(entity instanceof GramJs.MessageEntityMentionName && { userId: buildApiPeerId(entity.userId, 'user') }),
|
||||||
...('url' in entity && { url: entity.url }),
|
...('url' in entity && { url: entity.url }),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user