mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Hashable TelegramObject
This commit is contained in:
parent
f3f9b3c27a
commit
531b2a4df7
14 changed files with 54 additions and 50 deletions
|
|
@ -28,6 +28,9 @@ class Chat(base.TelegramObject):
|
|||
sticker_set_name: base.String = fields.Field()
|
||||
can_set_sticker_set: base.Boolean = fields.Field()
|
||||
|
||||
def __hash__(self):
|
||||
return self.id
|
||||
|
||||
@property
|
||||
def full_name(self):
|
||||
if self.type == ChatType.PRIVATE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue