From e419214b4998524ac1bd6db03713fb747d13560e Mon Sep 17 00:00:00 2001 From: uburuntu Date: Tue, 14 Aug 2018 17:29:35 +0300 Subject: [PATCH] fix: python2 positional argument specifiers --- telebot/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index c59a4d6..7340c10 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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())