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:
parent
7dd53b1396
commit
e419214b49
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user