1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

fix: python2 positional argument specifiers

This commit is contained in:
uburuntu 2018-08-14 17:29:35 +03:00
parent 7dd53b1396
commit e419214b49

View File

@ -2085,7 +2085,7 @@ class InputMedia(JsonSerializable):
self._media_dic = self.media
else:
self._media_name = util.generate_random_token()
self._media_dic = 'attach://{}'.format(self._media_name)
self._media_dic = 'attach://{0}'.format(self._media_name)
def to_json(self):
return json.dumps(self.to_dic())