From 08bb72ea6b49486efde98ba0100bbd32676646bf Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 2 Mar 2022 13:41:33 +0100 Subject: [PATCH] Fix inline builder articles --- telethon/types/_custom/inlinebuilder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/types/_custom/inlinebuilder.py b/telethon/types/_custom/inlinebuilder.py index 39b20a1c..9d69eb1f 100644 --- a/telethon/types/_custom/inlinebuilder.py +++ b/telethon/types/_custom/inlinebuilder.py @@ -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