mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 15:25:41 +00:00
Fix version being taken from class fields instead of instance fields
This commit is contained in:
@@ -335,8 +335,8 @@ class FileId:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def encode(self, *, major: int = None, minor: int = None):
|
def encode(self, *, major: int = None, minor: int = None):
|
||||||
major = major if major is not None else self.MAJOR
|
major = major if major is not None else self.major
|
||||||
minor = minor if minor is not None else self.MINOR
|
minor = minor if minor is not None else self.minor
|
||||||
|
|
||||||
buffer = BytesIO()
|
buffer = BytesIO()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user