Skip to content

Commit 4180c06

Browse files
committed
InputFile: use self instead of explicit class name
1 parent 3a0f219 commit 4180c06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

telegram/inputfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, data):
8080
self.filename = os.path.basename(self.input_file.name)
8181

8282
try:
83-
self.mimetype = InputFile.is_image(self.input_file_content)
83+
self.mimetype = self.is_image(self.input_file_content)
8484
if not self.filename or '.' not in self.filename:
8585
self.filename = self.mimetype.replace('/', '.')
8686
except TelegramError:
@@ -127,7 +127,7 @@ def to_form(self):
127127
form.append('--' + self.boundary + '--')
128128
form.append('')
129129

130-
return InputFile._parse(form)
130+
return self._parse(form)
131131

132132
@staticmethod
133133
def _parse(form):

0 commit comments

Comments
 (0)