Fix inline builder articles

This commit is contained in:
Lonami Exo 2022-03-02 13:41:33 +01:00
parent 2c64970451
commit 08bb72ea6b

View File

@ -1,4 +1,5 @@
import hashlib
import dataclasses
from ... import _tl
from ..._misc import utils
@ -144,7 +145,7 @@ class InlineBuilder:
content=content
)
if id is None:
result.id = hashlib.sha256(bytes(result)).hexdigest()
result = dataclasses.replace(result, id=hashlib.sha256(bytes(result)).hexdigest())
return result