mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
InputFile: use self instead of explicit class name
This commit is contained in:
parent
3a0f219783
commit
4180c069b3
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ class InputFile(object):
|
|||
self.filename = os.path.basename(self.input_file.name)
|
||||
|
||||
try:
|
||||
self.mimetype = InputFile.is_image(self.input_file_content)
|
||||
self.mimetype = self.is_image(self.input_file_content)
|
||||
if not self.filename or '.' not in self.filename:
|
||||
self.filename = self.mimetype.replace('/', '.')
|
||||
except TelegramError:
|
||||
|
@ -127,7 +127,7 @@ class InputFile(object):
|
|||
form.append('--' + self.boundary + '--')
|
||||
form.append('')
|
||||
|
||||
return InputFile._parse(form)
|
||||
return self._parse(form)
|
||||
|
||||
@staticmethod
|
||||
def _parse(form):
|
||||
|
|
Loading…
Add table
Reference in a new issue