Merge branch 'bot-api-2.0' into dispatcher-rework

Conflicts:
	docs/source/telegram.ext.jobqueue.rst
	docs/source/telegram.rst
This commit is contained in:
Jannes Höke 2016-04-22 16:12:45 +02:00
commit d46d9a711d
27 changed files with 218 additions and 27 deletions

View file

@ -1,5 +1,5 @@
telegram.ext.jobqueue module telegram.ext.jobqueue module
============================ ========================
.. automodule:: telegram.ext.jobqueue .. automodule:: telegram.ext.jobqueue
:members: :members:

View file

@ -0,0 +1,7 @@
telegram.inlinekeyboardbutton module
===========================
.. automodule:: telegram.inlinekeyboardbutton
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinekeyboardmarkup module
==========================
.. automodule:: telegram.inlinekeyboardmarkup
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultarticle module
=================================
.. automodule:: telegram.inlinequeryresultarticle
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultaudio module
=================================
.. automodule:: telegram.inlinequeryresultaudio
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedaudio module
=================================
.. automodule:: telegram.inlinequeryresultcachedaudio
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcacheddocument module
=================================
.. automodule:: telegram.inlinequeryresultcacheddocument
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedgif module
=================================
.. automodule:: telegram.inlinequeryresultcachedgif
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedmpeg4gif module
=================================
.. automodule:: telegram.inlinequeryresultcachedmpeg4gif
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedphoto module
=================================
.. automodule:: telegram.inlinequeryresultcachedphoto
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedsticker module
=================================
.. automodule:: telegram.inlinequeryresultcachedsticker
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedvideo module
=================================
.. automodule:: telegram.inlinequeryresultcachedvideo
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcachedvoice module
=================================
.. automodule:: telegram.inlinequeryresultcachedvoice
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultcontact module
=================================
.. automodule:: telegram.inlinequeryresultcontact
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultdocument module
=================================
.. automodule:: telegram.inlinequeryresultdocument
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultgif module
=================================
.. automodule:: telegram.inlinequeryresultgif
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultlocation module
=================================
.. automodule:: telegram.inlinequeryresultlocation
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultmpeg4gif module
=================================
.. automodule:: telegram.inlinequeryresultmpeg4gif
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultphoto module
=================================
.. automodule:: telegram.inlinequeryresultphoto
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultvenue module
=================================
.. automodule:: telegram.inlinequeryresultvenue
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultvideo module
=================================
.. automodule:: telegram.inlinequeryresultvideo
:members:
:undoc-members:
:show-inheritance:

View file

@ -0,0 +1,7 @@
telegram.inlinequeryresultvoice module
=================================
.. automodule:: telegram.inlinequeryresultvoice
:members:
:undoc-members:
:show-inheritance:

View file

@ -12,6 +12,27 @@ Submodules
telegram.ext telegram.ext
telegram.inlinequery telegram.inlinequery
telegram.inlinequeryresult telegram.inlinequeryresult
telegram.inlinekeyboardbutton
telegram.inlinekeyboardmarkup
telegram.inlinequeryresultarticle
telegram.inlinequeryresultaudio
telegram.inlinequeryresultcachedaudio
telegram.inlinequeryresultcacheddocument
telegram.inlinequeryresultcachedgif
telegram.inlinequeryresultcachedmpeg4gif
telegram.inlinequeryresultcachedphoto
telegram.inlinequeryresultcachedsticker
telegram.inlinequeryresultcachedvideo
telegram.inlinequeryresultcachedvoice
telegram.inlinequeryresultcontact
telegram.inlinequeryresultdocument
telegram.inlinequeryresultgif
telegram.inlinequeryresultlocation
telegram.inlinequeryresultmpeg4gif
telegram.inlinequeryresultphoto
telegram.inlinequeryresultvenue
telegram.inlinequeryresultvideo
telegram.inlinequeryresultvoice
telegram.choseninlineresult telegram.choseninlineresult
telegram.chataction telegram.chataction
telegram.contact telegram.contact

View file

@ -208,8 +208,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -258,8 +258,8 @@ class Bot(TelegramObject):
receive a notification with no sound. receive a notification with no sound.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -317,8 +317,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -387,8 +387,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -447,8 +447,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -499,8 +499,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -556,8 +556,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -618,8 +618,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -671,8 +671,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -733,8 +733,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -794,8 +794,8 @@ class Bot(TelegramObject):
keyboard or to force a reply from the user. keyboard or to force a reply from the user.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -1184,8 +1184,8 @@ class Bot(TelegramObject):
A JSON-serialized object for an inline keyboard. A JSON-serialized object for an inline keyboard.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.
@ -1239,8 +1239,8 @@ class Bot(TelegramObject):
A JSON-serialized object for an inline keyboard. A JSON-serialized object for an inline keyboard.
timeout (Optional[float]): If this value is specified, use it as timeout (Optional[float]): If this value is specified, use it as
the definitive timeout (in seconds) for urlopen() operations. the definitive timeout (in seconds) for urlopen() operations.
network_delay (Optional[float]): If using the timeout (which network_delay (Optional[float]): If using the timeout (which is
is a `timeout` for the Telegram servers operation), a `timeout` for the Telegram servers operation),
then `network_delay` as an extra delay (in seconds) to then `network_delay` as an extra delay (in seconds) to
compensate for network latency. Defaults to 2. compensate for network latency. Defaults to 2.

View file

@ -39,6 +39,14 @@ class InlineQueryResultArticle(InlineQueryResult):
thumb_width (int): thumb_width (int):
thumb_height (int): thumb_height (int):
Deprecated: 4.0
message_text (str): Use :class:`InputTextMessageContent` instead.
parse_mode (str): Use :class:`InputTextMessageContent` instead.
disable_web_page_preview (bool): Use :class:`InputTextMessageContent`
instead.
Args: Args:
id (str): Unique identifier for this result, 1-64 Bytes id (str): Unique identifier for this result, 1-64 Bytes
title (str): title (str):

View file

@ -39,6 +39,14 @@ class InlineQueryResultAudio(InlineQueryResult):
input_message_content (Optional[ input_message_content (Optional[
:class:`telegram.input_message_content`]): :class:`telegram.input_message_content`]):
Deprecated: 4.0
message_text (str): Use :class:`InputTextMessageContent` instead.
parse_mode (str): Use :class:`InputTextMessageContent` instead.
disable_web_page_preview (bool): Use :class:`InputTextMessageContent`
instead.
Args: Args:
audio_url (str): audio_url (str):
title (str): title (str):

View file

@ -62,6 +62,13 @@ class Message(TelegramObject):
migrate_from_chat_id (int): migrate_from_chat_id (int):
channel_chat_created (bool): channel_chat_created (bool):
Deprecated: 4.0
new_chat_participant (:class:`telegram.User`): Use `new_chat_member`
instead.
left_chat_participant (:class:`telegram.User`): Use `left_chat_member`
instead.
Args: Args:
message_id (int): message_id (int):
from_user (:class:`telegram.User`): from_user (:class:`telegram.User`):