mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
Prepare to release v3.3
This commit is contained in:
parent
75c6662f35
commit
c88865da04
5 changed files with 22 additions and 3 deletions
13
CHANGES.rst
13
CHANGES.rst
|
@ -1,3 +1,16 @@
|
|||
**2016-02-28**
|
||||
|
||||
*Released 3.3*
|
||||
|
||||
- Inline bots
|
||||
- Send any file by URL
|
||||
- Specialized exceptions: ``Unauthorized``, ``InvalidToken``, ``NetworkError`` and ``TimedOut``
|
||||
- Integration for botan.io (thanks to @ollmer)
|
||||
- HTML Parsemode (thanks to @jlmadurga)
|
||||
- Bugfixes and under-the-hood improvements
|
||||
|
||||
**Very special thanks to Noam Meltzer (@tsnoam) for all of his work!**
|
||||
|
||||
**2016-01-09**
|
||||
|
||||
*Released 3.3b1*
|
||||
|
|
|
@ -60,7 +60,7 @@ author = u'Leandro Toledo'
|
|||
# The short X.Y version.
|
||||
version = '3.3'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '3.3b1'
|
||||
release = '3.3.0'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
2
setup.py
2
setup.py
|
@ -26,7 +26,7 @@ def requirements():
|
|||
|
||||
setup(
|
||||
name='python-telegram-bot',
|
||||
version='3.3b1',
|
||||
version='3.3',
|
||||
author='Leandro Toledo',
|
||||
author_email='devs@python-telegram-bot.org',
|
||||
license='LGPLv3',
|
||||
|
|
|
@ -56,7 +56,7 @@ from .updater import Updater
|
|||
|
||||
|
||||
__author__ = 'devs@python-telegram-bot.org'
|
||||
__version__ = '3.3b1'
|
||||
__version__ = '3.3'
|
||||
__all__ = ('Bot', 'Updater', 'Dispatcher', 'Emoji', 'TelegramError',
|
||||
'InputFile', 'ReplyMarkup', 'ForceReply', 'ReplyKeyboardHide',
|
||||
'ReplyKeyboardMarkup', 'UserProfilePhotos', 'ChatAction',
|
||||
|
|
|
@ -199,6 +199,7 @@ class Bot(TelegramObject):
|
|||
text,
|
||||
parse_mode=None,
|
||||
disable_web_page_preview=None,
|
||||
disable_notification=None,
|
||||
**kwargs):
|
||||
"""Use this method to send text messages.
|
||||
|
||||
|
@ -213,6 +214,9 @@ class Bot(TelegramObject):
|
|||
Text of the message to be sent.
|
||||
disable_web_page_preview:
|
||||
Disables link previews for links in this message. [Optional]
|
||||
disable_notification:
|
||||
Sends the message silently. iOS users will not receive a notification,
|
||||
Android users will receive a notification with no sound. [Optional]
|
||||
reply_to_message_id:
|
||||
If the message is a reply, ID of the original message. [Optional]
|
||||
reply_markup:
|
||||
|
@ -233,6 +237,8 @@ class Bot(TelegramObject):
|
|||
data['parse_mode'] = parse_mode
|
||||
if disable_web_page_preview:
|
||||
data['disable_web_page_preview'] = disable_web_page_preview
|
||||
if disable_notification:
|
||||
data['disable_notification'] = disable_notification
|
||||
|
||||
return url, data
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue