mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Fix version being taken from class fields instead of instance fields
This commit is contained in:
parent
fa820328c3
commit
786235f316
@ -335,8 +335,8 @@ class FileId:
|
||||
)
|
||||
|
||||
def encode(self, *, major: int = None, minor: int = None):
|
||||
major = major if major is not None else self.MAJOR
|
||||
minor = minor if minor is not None else self.MINOR
|
||||
major = major if major is not None else self.major
|
||||
minor = minor if minor is not None else self.minor
|
||||
|
||||
buffer = BytesIO()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user