Add support for new reaction stuff
* Custom emojis in reactions * Premium users can react 3 times to a single message * Reactions to recent messages are now polled on read receipt
This commit is contained in:
@@ -92,6 +92,7 @@ class User(DBUser, AbstractUser, BaseUser):
|
||||
tg_username: str | None = None,
|
||||
tg_phone: str | None = None,
|
||||
is_bot: bool = False,
|
||||
is_premium: bool = False,
|
||||
saved_contacts: int = 0,
|
||||
) -> None:
|
||||
super().__init__(
|
||||
@@ -100,6 +101,7 @@ class User(DBUser, AbstractUser, BaseUser):
|
||||
tg_username=tg_username,
|
||||
tg_phone=tg_phone,
|
||||
is_bot=is_bot,
|
||||
is_premium=is_premium,
|
||||
saved_contacts=saved_contacts,
|
||||
)
|
||||
AbstractUser.__init__(self)
|
||||
@@ -371,6 +373,9 @@ class User(DBUser, AbstractUser, BaseUser):
|
||||
if self.is_bot != info.bot:
|
||||
self.is_bot = info.bot
|
||||
changed = True
|
||||
if self.is_premium != info.premium:
|
||||
self.is_premium = info.premium
|
||||
changed = True
|
||||
if self.tg_username != info.username:
|
||||
self.tg_username = info.username
|
||||
changed = True
|
||||
|
||||
Reference in New Issue
Block a user