From 8ca2e56aeec2de95d3f744d83c6e8ffa7553dca2 Mon Sep 17 00:00:00 2001 From: Lonami Date: Sat, 7 Jul 2018 19:42:47 +0200 Subject: [PATCH] Fix ID autocast should not add the mark --- telethon_generator/generators/tlobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon_generator/generators/tlobject.py b/telethon_generator/generators/tlobject.py index 6b371486..5190c6f8 100644 --- a/telethon_generator/generators/tlobject.py +++ b/telethon_generator/generators/tlobject.py @@ -30,7 +30,7 @@ AUTO_CASTS = { } NAMED_AUTO_CASTS = { - ('chat_id', 'int'): 'await client.get_peer_id({})' + ('chat_id', 'int'): 'await client.get_peer_id({}, add_mark=False)' } BASE_TYPES = ('string', 'bytes', 'int', 'long', 'int128',