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

Merge pull request #562 from uburuntu/InputMedia

fix: python2 positional argument specifiers
This commit is contained in:
FrankWang 2018-08-14 22:37:39 +08:00 committed by GitHub
commit 2b3c86b647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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())