From fc1a8b4273db5852033c68b6c67d4dc9e79d878c Mon Sep 17 00:00:00 2001 From: Zaid _ Date: Thu, 27 Jun 2024 13:02:50 +0300 Subject: [PATCH] fix for re.matches --- tgram/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgram/types.py b/tgram/types.py index 19f7dde..fa4beee 100644 --- a/tgram/types.py +++ b/tgram/types.py @@ -12,7 +12,7 @@ def __init__(self, me: "tgram.TgBot" = None, json: dict = None) -> None: @staticmethod def default(obj: "Type_"): if not isinstance(obj, Type_): - return obj + return repr(obj) return { "_": obj.__class__.__name__,