@@ -77,7 +77,7 @@ def get_input_peer(entity):
7777 if not isinstance (entity , TLObject ):
7878 _raise_cast_fail (entity , 'InputPeer' )
7979
80- if type (entity ).subclass_of_id == 0xc91c90b6 : # crc32(b'InputPeer')
80+ if type (entity ).SUBCLASS_OF_ID == 0xc91c90b6 : # crc32(b'InputPeer')
8181 return entity
8282
8383 if isinstance (entity , User ):
@@ -118,7 +118,7 @@ def get_input_channel(entity):
118118 if not isinstance (entity , TLObject ):
119119 _raise_cast_fail (entity , 'InputChannel' )
120120
121- if type (entity ).subclass_of_id == 0x40f202fd : # crc32(b'InputChannel')
121+ if type (entity ).SUBCLASS_OF_ID == 0x40f202fd : # crc32(b'InputChannel')
122122 return entity
123123
124124 if isinstance (entity , Channel ) or isinstance (entity , ChannelForbidden ):
@@ -135,7 +135,7 @@ def get_input_user(entity):
135135 if not isinstance (entity , TLObject ):
136136 _raise_cast_fail (entity , 'InputUser' )
137137
138- if type (entity ).subclass_of_id == 0xe669bf46 : # crc32(b'InputUser')
138+ if type (entity ).SUBCLASS_OF_ID == 0xe669bf46 : # crc32(b'InputUser')
139139 return entity
140140
141141 if isinstance (entity , User ):
@@ -161,7 +161,7 @@ def get_input_document(document):
161161 if not isinstance (document , TLObject ):
162162 _raise_cast_fail (document , 'InputDocument' )
163163
164- if type (document ).subclass_of_id == 0xf33fdb68 : # crc32(b'InputDocument')
164+ if type (document ).SUBCLASS_OF_ID == 0xf33fdb68 : # crc32(b'InputDocument')
165165 return document
166166
167167 if isinstance (document , Document ):
@@ -184,7 +184,7 @@ def get_input_photo(photo):
184184 if not isinstance (photo , TLObject ):
185185 _raise_cast_fail (photo , 'InputPhoto' )
186186
187- if type (photo ).subclass_of_id == 0x846363e0 : # crc32(b'InputPhoto')
187+ if type (photo ).SUBCLASS_OF_ID == 0x846363e0 : # crc32(b'InputPhoto')
188188 return photo
189189
190190 if isinstance (photo , Photo ):
@@ -201,7 +201,7 @@ def get_input_geo(geo):
201201 if not isinstance (geo , TLObject ):
202202 _raise_cast_fail (geo , 'InputGeoPoint' )
203203
204- if type (geo ).subclass_of_id == 0x430d225 : # crc32(b'InputGeoPoint')
204+ if type (geo ).SUBCLASS_OF_ID == 0x430d225 : # crc32(b'InputGeoPoint')
205205 return geo
206206
207207 if isinstance (geo , GeoPoint ):
@@ -228,7 +228,7 @@ def get_input_media(media, user_caption=None, is_photo=False):
228228 if not isinstance (media , TLObject ):
229229 _raise_cast_fail (media , 'InputMedia' )
230230
231- if type (media ).subclass_of_id == 0xfaf846f4 : # crc32(b'InputMedia')
231+ if type (media ).SUBCLASS_OF_ID == 0xfaf846f4 : # crc32(b'InputMedia')
232232 return media
233233
234234 if isinstance (media , MessageMediaPhoto ):
0 commit comments