From d4870148c7f72b9f084416919e53bb388aacbc16 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Mon, 17 Aug 2015 11:40:21 -0300 Subject: [PATCH] Add telegram.voice to docs and minor docstring fixes #39 --- docs/source/telegram.rst | 1 + docs/source/telegram.voice.rst | 7 +++++++ telegram/inputfile.py | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 docs/source/telegram.voice.rst diff --git a/docs/source/telegram.rst b/docs/source/telegram.rst index bcfe19659..6f5a1941e 100644 --- a/docs/source/telegram.rst +++ b/docs/source/telegram.rst @@ -29,6 +29,7 @@ Submodules telegram.user telegram.userprofilephotos telegram.video + telegram.voice Module contents --------------- diff --git a/docs/source/telegram.voice.rst b/docs/source/telegram.voice.rst new file mode 100644 index 000000000..052886b8e --- /dev/null +++ b/docs/source/telegram.voice.rst @@ -0,0 +1,7 @@ +telegram.voice module +===================== + +.. automodule:: telegram.voice + :members: + :undoc-members: + :show-inheritance: diff --git a/telegram/inputfile.py b/telegram/inputfile.py index acf1119ac..5d2d00fba 100644 --- a/telegram/inputfile.py +++ b/telegram/inputfile.py @@ -139,7 +139,8 @@ class InputFile(object): @staticmethod def is_inputfile(data): - """Check if the request is a file request + """Check if the request is a file request. + Args: data: A dict of (str, unicode) key/value pairs