mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-12 21:24:13 +03:00
Fix inline builder articles
This commit is contained in:
parent
2c64970451
commit
08bb72ea6b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user