From f241ef1eacb9c328e7d02a8a943c29bc8076f5ec Mon Sep 17 00:00:00 2001
From: Vadim Ryazanov <vadimvoronezh@yandex.ru>
Date: Tue, 27 Aug 2019 11:55:14 +0300
Subject: [PATCH 1/3] passport_data content type added

---
 telebot/types.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/telebot/types.py b/telebot/types.py
index 4d6a041..4975190 100644
--- a/telebot/types.py
+++ b/telebot/types.py
@@ -371,6 +371,9 @@ class Message(JsonDeserializable):
         if 'poll' in obj:
             opts['poll'] = Poll.de_json(obj['poll'])
             content_type = 'poll'
+        if 'passport_data' in obj:
+            opts['passport_data'] = obj['passport_data']
+            content_type = 'passport_data'
         return cls(message_id, from_user, date, chat, content_type, opts, json_string)
 
     @classmethod

From 8cb2da37750d3d1c73aebfc0c1de59eb4eeac215 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sat, 5 Oct 2019 11:55:18 +0000
Subject: [PATCH 2/3] Bump requests from 2.7.0 to 2.20.0

Bumps [requests](https://github.com/requests/requests) from 2.7.0 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/requests/requests/compare/v2.7.0...v2.20.0)

Signed-off-by: dependabot[bot] <support@github.com>
---
 requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/requirements.txt b/requirements.txt
index 1f9cd02..6e4ca40 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 py==1.4.29
 pytest==3.0.2
-requests==2.7.0
+requests==2.20.0
 six==1.9.0
 wheel==0.24.0

From 1a30a9a249d10ff0efdc42dcb82b2ca5506aece0 Mon Sep 17 00:00:00 2001
From: Innokentiy Min <keshamin@mail.ru>
Date: Wed, 30 Oct 2019 14:02:00 +0300
Subject: [PATCH 3/3] Fixed #578

---
 telebot/apihelper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/telebot/apihelper.py b/telebot/apihelper.py
index 094fbbf..d3d53a6 100644
--- a/telebot/apihelper.py
+++ b/telebot/apihelper.py
@@ -99,7 +99,7 @@ def get_file(token, file_id):
 
 
 def get_file_url(token, file_id):
-    return FILE_URL.format(token, get_file(token, file_id).file_path)
+    return FILE_URL.format(token, get_file(token, file_id)['file_path'])
 
 
 def download_file(token, file_path):