Compare commits

...

93 Commits

Author SHA1 Message Date
Noam Meltzer 13ab6d43d3 CHANGES.rst: Added 7.0.1 release notes.
[ci skip]
2017-07-28 21:22:48 +03:00
Eldinnie 2ba7505eaf Fix TypeError exception in RegexHandler (#751)
fixes #750
2017-07-28 20:47:42 +03:00
Eldinnie 5ed06df840 callback query docstring (#749)
showed from instead of from_user and was missing the informational note about it.

[ci skip]
2017-07-28 17:41:25 +03:00
Noam Meltzer eef1238d60 Comment out unitest test_send_contact_with_contact
Caused too many "RetryAfter: Flood control exceeded" errors.

[ci skip]
2017-07-28 17:39:21 +03:00
Noam Meltzer 2aae602082 CHANGES.rst: cosmetic fix
[ci skip]
2017-07-25 23:07:26 +03:00
Noam Meltzer 796583323d Bump version to v7.0.0 2017-07-25 22:53:20 +03:00
Noam Meltzer 5392bfead0 CHANGES.rst: And some more tweaks
[ci skip]
2017-07-25 22:48:18 +03:00
Noam Meltzer 46d9240f36 Update vendored urllib3 gitmodule to the proper git revision
Refs #720
2017-07-25 22:37:58 +03:00
Noam Meltzer af56dd5a58 Updated CHANGES.rst - preparing to release v7.0.0 2017-07-25 22:33:28 +03:00
Ali Mirlou e5b0795916 Typo fixed for docs (#747)
[ci skip]
2017-07-25 21:32:20 +03:00
Eldinnie ae29620cd6 Remove duplicate test (#748) 2017-07-25 21:31:30 +03:00
Eldinnie 8d1d38cc4c send_* now accepts tg-objects (#742)
Fixes #731
2017-07-25 01:35:22 +03:00
Eldinnie 2d1028acb6 Add kwargs to data dict (#744)
Add kwargs to data dict for all bot-methods that are not decorated with `@message`

Fixes #733
2017-07-25 01:19:09 +03:00
Eldinnie 94e0d3c2ac Update Issue template (#745)
With a note that questions about usage should be asked in the group, not as an issue
[ci skip]
2017-07-25 00:27:30 +03:00
Noam Meltzer f0638df390 Disable webhook unitests
Telegram servers don't like the endless game of set/delete webhooks and
refusing our requests. We're better of without testing it.
2017-07-25 00:23:11 +03:00
Noam Meltzer 2aa31c6faa Remove urllib3 from reported packages for creating new github issues
[ci skip]
2017-07-25 00:22:03 +03:00
Eldinnie 81987c38d4 Update .readthedocs.yml (#741) 2017-07-24 00:05:40 +03:00
Eldinnie b3b94240a5 Docs update (#728)
Amazing new documentation.
2017-07-23 23:33:08 +03:00
Rahiel Kasim 19ce9e4512 Delete deprecated code (#693)
* remove Botan import from utils

* remove telegram.Emoji

* remove ReplyKeyboardHide

* remove edit_message argument of bot.set_game_score
2017-07-23 22:58:20 +03:00
Noam Meltzer c02613559d README/CHANGES: Bot API 3.2 is now supported
[ci skip]
2017-07-23 22:41:50 +03:00
Rahiel Kasim 9bd5042cc3 README: add downloads/month badge (#692)
Fixes #293 
[ci skip]
2017-07-23 22:32:12 +03:00
Jelle Besseling 8320227b2a ConvesationHandler - check if a user exist before using it (#699)
Fixes #695
2017-07-23 22:29:52 +03:00
Ihor Polyakov 08d298eb60 TelegramObject.de_json became classmethod (#737)
Fixes #734
2017-07-23 22:14:38 +03:00
Jacob Bom 5a37af6f89 Bot api 3.2 (#732)
NOTE: Currently not testing StickerSet in terms of bot methods (interaction with telegrams servers) as there's no delete operations.
2017-07-22 14:34:51 +03:00
Rahiel Kasim 881da40978 Read the Docs configuration (#729)
[ci skip]
2017-07-22 14:13:49 +03:00
thodnev f72f4090c6 Fixed args dispatching in messagequeue decorator (#705) 2017-07-08 07:18:10 +03:00
Jacob Bom 94ed4cb38d Bot api 3.1 (#698) + minor improvements
- Added all the new and shiny features from API 3.1.
 - Not API 3.1 changes:
   - Use future.utils.string_types for string isinstance checks.
   - Stall between retries of test_set_webhook_get_webhook_info() &
     test_delete_webhook().
2017-07-01 18:08:45 +03:00
Jacob Bom cbafdc289f Fix Message.text_*
Didn't work with URL type MessageEntities
(when you type a url in a tg client and tg converts it to a link for you)
2017-06-24 11:12:35 +03:00
Noam Meltzer ebb2556176 Fix download of URLs with UTF-8 chars in path
refs #650
2017-06-24 11:10:43 +03:00
Jacob Bom 564d361cdf Add folding to travis script section (#686) 2017-06-24 11:09:44 +03:00
Eldinnie b4b0eb4686 Tests files from website (#687)
Use website for send from url tests instead of github.
2017-06-23 21:10:43 +03:00
Noam Meltzer 8703ae0b8d Merge pull request #683 from python-telegram-bot/no_hardcoded_fileids
No hardcoded fileids
2017-06-23 00:47:13 +03:00
Noam Meltzer 8fcfdca25b updated pre-commit tools versions 2017-06-22 22:06:37 +03:00
Noam Meltzer d216b83728 Merge pull request #685 from python-telegram-bot/cache-pip-ci
Cache pip for travis and appveyor + update to travis trusty container
2017-06-22 21:48:00 +03:00
Noam Meltzer 56949bcad6 Merge pull request #674 from python-telegram-bot/restructure-internal
Move a lot of files
2017-06-22 21:26:47 +03:00
Noam Meltzer 470ee86497 Merge pull request #677 from evgfilim1/new-filters
New filters for handling messages from specific chat/user id
2017-06-22 21:25:39 +03:00
Jacob Bom 5b9bb904c2 Skip "official" tests on pypy
inspect.signature() seems to return a string instead of an actual signature on pypy
2017-06-22 20:18:31 +02:00
Jacob Bom 9264264a02 Does this version work?
See travis-ci/travis-ci#6727 for more info too
2017-06-22 19:31:52 +02:00
Jacob Bom 3dabc3146a Update pypy so it hopefully is found in trusty python archive
See also #655
2017-06-22 19:29:34 +02:00
Eldin cedc38dcdf finalising
* Added telegram.jpg to gitignore since we're downloading it now
* moved download tests to the right tests to make test_file file_id free
2017-06-22 18:29:21 +02:00
Jacob Bom 51759307d7 Try updating to trusty
Currently about 1min of build time is spent updating libssl... maybe it's newer on trusty?
2017-06-22 18:09:29 +02:00
Eldin ac0793caa2 test_sticker modified
* cleanup assertions in test_video
* modify test_sticker to same standard as the others.
2017-06-22 18:04:19 +02:00
Eldin 28836b7735 stickerfile added 2017-06-22 17:45:06 +02:00
Eldin 4fad382f26 standardize assertions 2017-06-22 17:17:40 +02:00
Jacob Bom 4b16d0937b Wheel not wheels 2017-06-22 16:28:13 +02:00
Jacob Bom db8ae7602b Cache pip for travis and appveyor
Updating wheels package since caching was introduced in v7 and I'm not sure what version is default on travis.
2017-06-22 15:49:46 +02:00
Jacob Bom 512ca2643f Fix weird import in phototest 2017-06-22 15:40:43 +02:00
evgfilim1 ecfcc69cf9 Fixed tests 2017-06-22 15:20:11 +05:00
evgfilim1 7e81a1510d Added ability to process list of ids/usernames 2017-06-22 15:19:49 +05:00
evgfilim1 ca9068f2b5 Simplified if statement, fixed docs 2017-06-22 13:39:41 +05:00
Noam Meltzer 45d4ea083d Merge pull request #671 from alateas/master
Make error output more clear for too big uploads.
2017-06-22 10:33:25 +03:00
Noam Meltzer 7a89dcb911 Properly try to parse server message before raising errors 2017-06-21 23:34:35 +03:00
Noam Meltzer 4b3b0cb4cd Merge pull request #668 from python-telegram-bot/official-test
Add an "official test"
2017-06-21 23:14:10 +03:00
Noam Meltzer 3ea16cb1c7 Merge pull request #675 from python-telegram-bot/name-filters
Allow filters to have a name.
2017-06-21 23:11:26 +03:00
Eldin 85e52f1930 delete test file 2017-06-21 19:02:36 +02:00
Eldin 976ad1b987 new shorter audiofile 2017-06-21 19:01:20 +02:00
Eldin 1f9f3ae8a1 shorter mp3 file 2017-06-21 18:55:59 +02:00
Eldin d2f89382a0 sending from web stuff
* Audiofile sent from web is shorter then from local
* web-photo's send more than two imagesizes
2017-06-21 18:46:50 +02:00
Eldin b49431931a Reworked get_bot
It now decides wich bot to give depending on CI, and made ready or more bot's per version.
2017-06-21 18:25:04 +02:00
Eldin fca64f5fc6 Move photo tests from test_bot to test_photo 2017-06-21 18:10:00 +02:00
Eldin c92ebc4046 test_audio done
* Changed to new method of non-static file_id
* removed obsolete tests.
* changed some tests in all file
2017-06-21 17:59:35 +02:00
Eldin 281bd67298 test_document done
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 17:38:20 +02:00
Eldin f6a98d7888 test_photo done
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 17:21:18 +02:00
Eldin e7b839b69e Simple assertions in setUpClass
Py2 does not implement TestCase's assertions until setUp() is done. Hence we need simple assertions in the setUpClass
2017-06-21 16:50:40 +02:00
Eldin 4fe805ee0c Clean up after conversation
Clean setUpClass + add assertions
remove obsolete tests
add test_expected_values
2017-06-21 16:09:51 +02:00
Jacob Bom 04acbc4117 Remove the need for calling super() in filters 2017-06-21 13:46:03 +02:00
Eldin 4bf63d7358 reformat code 2017-06-21 00:34:46 +02:00
Eldin 991ee2bc88 sys.path why? 2017-06-21 00:33:23 +02:00
Eldin c91ffc122a test_videonote done
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:31:14 +02:00
Eldin 7b7c4a81bb test_voice done
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:22:11 +02:00
Eldin 6b7ce7b8f0 test_video done
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:12:26 +02:00
Eldin 8a89265c2d first tries 2017-06-20 23:55:35 +02:00
Jacob Bom 4b53ed1c65 Fix videonote import 2017-06-20 22:41:02 +02:00
Jacob Bom 1e4248136c Merge branch 'master' into restructure-internal 2017-06-20 22:28:14 +02:00
Jacob Bom 9f1b63b165 Add module name to tests name
So they fit in with the rest better
2017-06-20 21:49:16 +02:00
Eldinnie eee0f78b15 Add appveyor.yml (#660)
[ci skip]
2017-06-20 22:45:49 +03:00
Jacob Bom 0afe83ac30 Merge branch 'master' into official-test 2017-06-20 21:42:33 +02:00
Jacob Bom 6cc84b2c32 Only write repr as str will invoke it implicitly 2017-06-20 21:41:23 +02:00
evgfilim1 3bf4399a4f Fixed tests 2017-06-20 12:49:01 +05:00
evgfilim1 9bccbdab2a Added ability to filter by username 2017-06-20 12:43:07 +05:00
Jacob Bom dba4739f76 Add a tiny test for unnamed filters
Increases coverage by 1 (one) line! Woo :D
2017-06-19 21:49:42 +02:00
Jacob Bom a964b7bfd0 Okay, so not even *args followed by a kwarg is allowed on py2...
So just remove it for now. Better than doing annoying stuff with parsing a **kwargs dict in my opinion. It didn't even *really* need to be kwarg only anyways I guess...
2017-06-19 21:46:34 +02:00
evgfilim1 e18ebd035c Added tests 2017-06-19 22:53:44 +05:00
evgfilim1 5a62255675 Added new filters for handling specific chat id and user id 2017-06-19 22:50:44 +05:00
Jacob Bom 01f3d88788 Update filter test 2017-06-18 16:25:48 +02:00
Jacob Bom 2b871e6f93 * for keyword only arguments isn't supported on py2 it seems... 2017-06-18 16:22:59 +02:00
Jacob Bom 788b9dab0c Fill in super() calls 2017-06-18 16:03:32 +02:00
Jacob Bom 4c41f3870c Allow filters to have a name.
So their string representation is user friendly.
2017-06-18 15:28:48 +02:00
Jacob Bom 5c2893111a Move a lot of files 2017-06-18 12:35:00 +02:00
Alateas 6ffd75e421 Try to process response data after checking errors, not before. Add 413 File too large http error message. 2017-06-15 18:44:39 +03:00
Jacob Bom dfb0ff27d3 Add bs4 to requirements 2017-06-14 14:04:39 +02:00
Jacob Bom 9b84a558fb Fix width+height in sendVideo + game in Message
First errors found by the official test thingy
2017-06-14 13:48:45 +02:00
Jacob Bom 3ca6f6aa0e Add official test
Cross references method and class signatures with official docs
2017-06-14 13:42:57 +02:00
250 changed files with 7811 additions and 5948 deletions
+5
View File
@@ -1,5 +1,10 @@
<!--
Thanks for reporting issues of python-telegram-bot!
Use this template to notify us if you found a bug, or if you want to request a new feature.
If you're looking for help with programming your bot using our library, feel free to ask your
questions in out telegram group at: https://t.me/pythontelegrambotgroup
To make it easier for us to help you please enter detailed information below.
Please note, we only support the latest version of python-telegram-bot and
+1
View File
@@ -69,6 +69,7 @@ telegram2.mp4
telegram.ogg
telegram.png
telegram.webp
telegram.jpg
# original files from merges
*.orig
+3 -3
View File
@@ -1,17 +1,17 @@
- repo: git://github.com/python-telegram-bot/mirrors-yapf
sha: v0.12.2
sha: master
hooks:
- id: yapf
files: ^(telegram|tests)/.*\.py$
args:
- --diff
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: 18d7035de5388cc7775be57f529c154bf541aab9
sha: 78818b90cd694c29333ba54d38f9e60b6359ccfc
hooks:
- id: flake8
files: ^telegram/.*\.py$
- repo: git://github.com/pre-commit/mirrors-pylint
sha: v1.5.5
sha: v1.7.1
hooks:
- id: pylint
files: ^telegram/.*\.py$
+9
View File
@@ -0,0 +1,9 @@
# syntax: https://docs.readthedocs.io/en/latest/yaml-config.html
formats:
- pdf
python:
setup_py_install: true
requirements_file: docs/requirements-docs.txt
+18 -6
View File
@@ -5,19 +5,31 @@ python:
- "3.4"
- "3.5"
- "3.6"
- "pypy"
- "pypy3"
- "pypy-5.7.1"
- "pypy3.5-5.8.0"
dist: trusty
sudo: false
branches:
only:
- master
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
install:
- pip install coveralls
- pip install -U wheel
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
script:
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
- python ./setup.py bdist_dumb
- python travis.py
after_success:
coveralls
coveralls
+1
View File
@@ -32,6 +32,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Jacob Bom <https://github.com/bomjacob>`_
- `JASON0916 <https://github.com/JASON0916>`_
- `jeffffc <https://github.com/jeffffc>`_
- `Jelle Besseling <https://github.com/pingiun>`_
- `jh0ker <https://github.com/jh0ker>`_
- `John Yong <https://github.com/whipermr5>`_
- `jossalgon <https://github.com/jossalgon>`_
+25
View File
@@ -2,6 +2,31 @@
Changes
=======
**2017-07-28**
*Released 7.0.1*
- Fix TypeError exception in RegexHandler (PR #751).
- Small documentation fix (PR #749).
**2017-07-25**
*Released 7.0.0*
- Fully support Bot API 3.2.
- New filters for handling messages from specific chat/user id (PR #677).
- Add the possibility to add objects as arguments to send_* methods (PR #742).
- Fixed download of URLs with UTF-8 chars in path (PR #688).
- Fixed URL parsing for ``Message`` text properties (PR #689).
- Fixed args dispatching in ``MessageQueue``'s decorator (PR #705).
- Fixed regression preventing IPv6 only hosts from connnecting to Telegram servers (Issue #720).
- ConvesationHandler - check if a user exist before using it (PR #699).
- Removed deprecated ``telegram.Emoji``.
- Removed deprecated ``Botan`` import from ``utils`` (``Botan`` is still available through ``contrib``).
- Removed deprecated ``ReplyKeyboardHide``.
- Removed deprecated ``edit_message`` argument of ``bot.set_game_score``.
- Internal restructure of files.
- Improved documentation.
- Improved unitests.
**2017-06-18**
*Released 6.1.0*
+5 -1
View File
@@ -15,6 +15,10 @@ We have made you a wrapper you can't refuse
:target: https://pypi.python.org/pypi/python-telegram-bot
:alt: Supported python versions
.. image:: https://www.cpu.re/static/python-telegram-bot/downloads.svg
:target: https://www.cpu.re/static/python-telegram-bot/downloads-by-python-version.txt
:alt: PyPi Package Monthly Download
.. image:: https://img.shields.io/badge/docs-latest-af1a97.svg
:target: https://python-telegram-bot.readthedocs.io/
:alt: Documentation Status
@@ -84,7 +88,7 @@ make the development of bots easy and straightforward. These classes are contain
Telegram API support
====================
As of **18. June 2017**, all types and methods of the Telegram Bot API 3.0 are supported.
As of **23. July 2017**, all types and methods of the Telegram Bot API 3.2 are supported.
==========
Installing
+31
View File
@@ -0,0 +1,31 @@
environment:
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python33"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
install:
# We need wheel installed to build wheels
- "git submodule update --init --recursive"
- "%PYTHON%\\python.exe -m pip install -U wheel"
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
- "%PYTHON%\\python.exe -m pip install -r requirements-dev.txt"
build: off
cache: C:\Users\appveyor\pip\wheels
test_script:
- "%python%\\Scripts\\nosetests -v --with-flaky --no-flaky-report tests"
after_test:
# This step builds your wheels.
- "%PYTHON%\\python.exe setup.py bdist_wheel"
+1 -1
View File
@@ -1,3 +1,3 @@
sphinx
sphinx>=1.5.4
sphinx_rtd_theme
sphinx-pypi-upload
+2 -2
View File
@@ -58,9 +58,9 @@ author = u'Leandro Toledo'
# built documents.
#
# The short X.Y version.
version = '6.1' # telegram.__version__[:3]
version = '7.0' # telegram.__version__[:3]
# The full version, including alpha/beta/rc tags.
release = '6.1.0' # telegram.__version__
release = '7.0.1' # telegram.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
+3
View File
@@ -6,6 +6,9 @@
Welcome to Python Telegram Bot's documentation!
===============================================
Below you can find the documentation for the python-telegram-bot library. except for the .ext package most of the
objects in the package reflect the types as defined by the `telegram bot api <https://core.telegram.org/bots/api>`_.
.. toctree::
telegram
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.animation module
=========================
telegram.Animation
==================
.. automodule:: telegram.animation
.. autoclass:: telegram.Animation
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.audio module
=====================
telegram.Audio
==============
.. automodule:: telegram.audio
.. autoclass:: telegram.Audio
:members:
:undoc-members:
:show-inheritance:
-7
View File
@@ -1,7 +0,0 @@
telegram.base module
====================
.. automodule:: telegram.base
:members:
:undoc-members:
:show-inheritance:
+4 -4
View File
@@ -1,6 +1,6 @@
telegram.bot module
===================
telegram.Bot
============
.. automodule:: telegram.bot
.. autoclass:: telegram.Bot
:members:
:show-inheritance:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.callbackgame module
============================
telegram.Callbackgame
=====================
.. automodule:: telegram.callbackgame
.. autoclass:: telegram.CallbackGame
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.callbackquery module
=============================
telegram.CallbackQuery
======================
.. automodule:: telegram.callbackquery
.. autoclass:: telegram.CallbackQuery
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.chat module
=========================
telegram.Chat
=============
.. automodule:: telegram.chat
.. autoclass:: telegram.Chat
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.chataction module
==========================
telegram.ChatAction
===================
.. automodule:: telegram.chataction
.. autoclass:: telegram.ChatAction
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.chatmember module
==========================
telegram.ChatMember
===================
.. automodule:: telegram.chatmember
.. autoclass:: telegram.ChatMember
:members:
:undoc-members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.ChatPhoto
==================
.. autoclass:: telegram.ChatPhoto
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.choseninlineresult module
==================================
telegram.ChosenInlineResult
===========================
.. automodule:: telegram.choseninlineresult
.. autoclass:: telegram.ChosenInlineResult
:members:
:undoc-members:
:show-inheritance:
+1 -2
View File
@@ -1,7 +1,6 @@
telegram.constants module
telegram.constants Module
=========================
.. automodule:: telegram.constants
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.contact module
=======================
telegram.Contact
================
.. automodule:: telegram.contact
.. autoclass:: telegram.Contact
:members:
:undoc-members:
:show-inheritance:
+3 -3
View File
@@ -1,7 +1,7 @@
telegram.contrib.botan module
=============================
telegram.contrib.Botan
======================
.. automodule:: telegram.contrib.botan
.. autoclass:: telegram.contrib.Botan
:members:
:undoc-members:
:show-inheritance:
+1
View File
@@ -15,3 +15,4 @@ Module contents
:members:
:undoc-members:
:show-inheritance:
:noindex:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.document module
========================
telegram.Document
=================
.. automodule:: telegram.document
.. autoclass:: telegram.Document
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.ext.callbackqueryhandler module
========================================
telegram.ext.CallbackQueryHandler
=================================
.. automodule:: telegram.ext.callbackqueryhandler
.. autoclass:: telegram.ext.CallbackQueryHandler
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.ext.choseninlineresulthandler module
=============================================
telegram.ext.ChosenInlineResultHandler
======================================
.. automodule:: telegram.ext.choseninlineresulthandler
.. autoclass:: telegram.ext.ChosenInlineResultHandler
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.commandhandler module
==================================
telegram.ext.CommandHandler
===========================
.. automodule:: telegram.ext.commandhandler
.. autoclass:: telegram.ext.CommandHandler
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.ext.conversationhandler module
=======================================
telegram.ext.ConversationHandler
================================
.. automodule:: telegram.ext.conversationhandler
.. autoclass:: telegram.ext.ConversationHandler
:members:
:undoc-members:
:show-inheritance:
+7
View File
@@ -0,0 +1,7 @@
telegram.ext.DelayQueue
=======================
.. autoclass:: telegram.ext.DelayQueue
:members:
:show-inheritance:
:special-members:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.dispatcher module
==============================
telegram.ext.Dispatcher
=======================
.. automodule:: telegram.ext.dispatcher
.. autoclass:: telegram.ext.Dispatcher
:members:
:undoc-members:
:show-inheritance:
+1 -2
View File
@@ -1,7 +1,6 @@
telegram.ext.filters module
telegram.ext.filters Module
===========================
.. automodule:: telegram.ext.filters
:members:
:undoc-members:
:show-inheritance:
+3 -3
View File
@@ -1,7 +1,7 @@
telegram.ext.handler module
===========================
telegram.ext.Handler
====================
.. automodule:: telegram.ext.handler
.. autoclass:: telegram.ext.Handler
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.ext.inlinequeryhandler module
======================================
telegram.ext.InlineQueryHandler
===============================
.. automodule:: telegram.ext.inlinequeryhandler
.. autoclass:: telegram.ext.InlineQueryHandler
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.jobqueue module
============================
telegram.ext.JobQueue
=====================
.. automodule:: telegram.ext.jobqueue
.. autoclass:: telegram.ext.JobQueue
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.messagehandler module
==================================
telegram.ext.MessageHandler
===========================
.. automodule:: telegram.ext.messagehandler
.. autoclass:: telegram.ext.MessageHandler
:members:
:undoc-members:
:show-inheritance:
+4 -4
View File
@@ -1,7 +1,7 @@
telegram.ext.messagequeue module
================================
telegram.ext.MessageQueue
=========================
.. automodule:: telegram.ext.messagequeue
.. autoclass:: telegram.ext.MessageQueue
:members:
:undoc-members:
:show-inheritance:
:special-members:
@@ -0,0 +1,6 @@
telegram.ext.PreCheckoutQueryHandler
====================================
.. autoclass:: telegram.ext.PreCheckoutQueryHandler
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.regexhandler module
================================
telegram.ext.RegexHandler
=========================
.. automodule:: telegram.ext.regexhandler
.. autoclass:: telegram.ext.RegexHandler
:members:
:undoc-members:
:show-inheritance:
+11 -13
View File
@@ -1,14 +1,20 @@
telegram.ext package
====================
Submodules
----------
.. toctree::
telegram.ext.updater
telegram.ext.dispatcher
telegram.ext.filters
telegram.ext.jobqueue
telegram.ext.messagequeue
telegram.ext.delayqueue
Handlers
--------
.. toctree::
telegram.ext.handler
telegram.ext.callbackqueryhandler
telegram.ext.choseninlineresulthandler
@@ -16,17 +22,9 @@ Submodules
telegram.ext.commandhandler
telegram.ext.inlinequeryhandler
telegram.ext.messagehandler
telegram.ext.messagequeue
telegram.ext.filters
telegram.ext.precheckoutqueryhandler
telegram.ext.regexhandler
telegram.ext.shippingqueryhandler
telegram.ext.stringcommandhandler
telegram.ext.stringregexhandler
telegram.ext.typehandler
Module contents
---------------
.. automodule:: telegram.ext
:members:
:undoc-members:
:show-inheritance:
@@ -0,0 +1,6 @@
telegram.ext.ShippingQueryHandler
=================================
.. autoclass:: telegram.ext.ShippingQueryHandler
:members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.ext.stringcommandhandler module
========================================
telegram.ext.StringCommandHandler
=================================
.. automodule:: telegram.ext.stringcommandhandler
.. autoclass:: telegram.ext.StringCommandHandler
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.ext.stringregexhandler module
======================================
telegram.ext.StringRegexHandler
===============================
.. automodule:: telegram.ext.stringregexhandler
.. autoclass:: telegram.ext.StringRegexHandler
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.typehandler module
===============================
telegram.ext.TypeHandler
========================
.. automodule:: telegram.ext.typehandler
.. autoclass:: telegram.ext.TypeHandler
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.ext.updater module
===========================
telegram.ext.Updater
====================
.. automodule:: telegram.ext.updater
.. autoclass:: telegram.ext.Updater
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.file module
====================
telegram.File
=============
.. automodule:: telegram.file
.. autoclass:: telegram.File
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.forcereply module
==========================
telegram.ForceReply
===================
.. automodule:: telegram.forcereply
.. autoclass:: telegram.ForceReply
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.game module
====================
telegram.Game
=============
.. automodule:: telegram.game
.. autoclass:: telegram.Game
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.gamehighscore module
=============================
telegram.GameHighScore
======================
.. automodule:: telegram.gamehighscore
.. autoclass:: telegram.GameHighScore
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinekeyboardbutton module
====================================
telegram.InlineKeyboardButton
=============================
.. automodule:: telegram.inlinekeyboardbutton
.. autoclass:: telegram.InlineKeyboardButton
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinekeyboardmarkup module
====================================
telegram.InlineKeyboardMarkup
=============================
.. automodule:: telegram.inlinekeyboardmarkup
.. autoclass:: telegram.InlineKeyboardMarkup
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.inlinequery module
===========================
telegram.InlineQuery
====================
.. automodule:: telegram.inlinequery
.. autoclass:: telegram.InlineQuery
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.inlinequeryresult module
=================================
telegram.InlineQueryResult
==========================
.. automodule:: telegram.inlinequeryresult
.. autoclass:: telegram.InlineQueryResult
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultarticle module
========================================
telegram.InlineQueryResultArticle
=================================
.. automodule:: telegram.inlinequeryresultarticle
.. autoclass:: telegram.InlineQueryResultArticle
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultaudio module
======================================
telegram.InlineQueryResultAudio
===============================
.. automodule:: telegram.inlinequeryresultaudio
.. autoclass:: telegram.InlineQueryResultAudio
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedaudio module
============================================
telegram.InlineQueryResultCachedAudio
=====================================
.. automodule:: telegram.inlinequeryresultcachedaudio
.. autoclass:: telegram.InlineQueryResultCachedAudio
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcacheddocument module
===============================================
telegram.InlineQueryResultCachedDocument
========================================
.. automodule:: telegram.inlinequeryresultcacheddocument
.. autoclass:: telegram.InlineQueryResultCachedDocument
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedgif module
==========================================
telegram.InlineQueryResultCachedGif
===================================
.. automodule:: telegram.inlinequeryresultcachedgif
.. autoclass:: telegram.InlineQueryResultCachedGif
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedmpeg4gif module
===============================================
telegram.InlineQueryResultCachedMpeg4Gif
========================================
.. automodule:: telegram.inlinequeryresultcachedmpeg4gif
.. autoclass:: telegram.InlineQueryResultCachedMpeg4Gif
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedphoto module
============================================
telegram.InlineQueryResultCachedPhoto
=====================================
.. automodule:: telegram.inlinequeryresultcachedphoto
.. autoclass:: telegram.InlineQueryResultCachedPhoto
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedsticker module
==============================================
telegram.InlineQueryResultCachedSticker
=======================================
.. automodule:: telegram.inlinequeryresultcachedsticker
.. autoclass:: telegram.InlineQueryResultCachedSticker
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedvideo module
============================================
telegram.InlineQueryResultCachedVideo
=====================================
.. automodule:: telegram.inlinequeryresultcachedvideo
.. autoclass:: telegram.InlineQueryResultCachedVideo
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcachedvoice module
============================================
telegram.InlineQueryResultCachedVoice
=====================================
.. automodule:: telegram.inlinequeryresultcachedvoice
.. autoclass:: telegram.InlineQueryResultCachedVoice
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultcontact module
========================================
telegram.InlineQueryResultContact
=================================
.. automodule:: telegram.inlinequeryresultcontact
.. autoclass:: telegram.InlineQueryResultContact
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultdocument module
=========================================
telegram.InlineQueryResultDocument
==================================
.. automodule:: telegram.inlinequeryresultdocument
.. autoclass:: telegram.InlineQueryResultDocument
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultgame module
=====================================
telegram.InlineQueryResultGame
==============================
.. automodule:: telegram.inlinequeryresultgame
.. autoclass:: telegram.InlineQueryResultGame
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultgif module
====================================
telegram.InlineQueryResultGif
=============================
.. automodule:: telegram.inlinequeryresultgif
.. autoclass:: telegram.InlineQueryResultGif
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultlocation module
=========================================
telegram.InlineQueryResultLocation
==================================
.. automodule:: telegram.inlinequeryresultlocation
.. autoclass:: telegram.InlineQueryResultLocation
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultmpeg4gif module
=========================================
telegram.InlineQueryResultMpeg4Gif
==================================
.. automodule:: telegram.inlinequeryresultmpeg4gif
.. autoclass:: telegram.InlineQueryResultMpeg4Gif
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultphoto module
======================================
telegram.InlineQueryResultPhoto
===============================
.. automodule:: telegram.inlinequeryresultphoto
.. autoclass:: telegram.InlineQueryResultPhoto
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultvenue module
======================================
telegram.InlineQueryResultVenue
===============================
.. automodule:: telegram.inlinequeryresultvenue
.. autoclass:: telegram.InlineQueryResultVenue
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultvideo module
======================================
telegram.InlineQueryResultVideo
===============================
.. automodule:: telegram.inlinequeryresultvideo
.. autoclass:: telegram.InlineQueryResultVideo
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inlinequeryresultvoice module
======================================
telegram.InlineQueryResultVoice
===============================
.. automodule:: telegram.inlinequeryresultvoice
.. autoclass:: telegram.InlineQueryResultVoice
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inputcontactmessagecontent module
==========================================
telegram.InputContactMessageContent
===================================
.. automodule:: telegram.inputcontactmessagecontent
.. autoclass:: telegram.InputContactMessageContent
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.inputfile module
=========================
telegram.InputFile
==================
.. automodule:: telegram.inputfile
.. autoclass:: telegram.InputFile
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inputlocationmessagecontent module
===========================================
telegram.InputLocationMessageContent
====================================
.. automodule:: telegram.inputlocationmessagecontent
.. autoclass:: telegram.InputLocationMessageContent
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.inputmessagecontent module
===================================
telegram.InputMessageContent
============================
.. automodule:: telegram.inputmessagecontent
.. autoclass:: telegram.InputMessageContent
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inputtextmessagecontent module
=======================================
telegram.InputTextMessageContent
================================
.. automodule:: telegram.inputtextmessagecontent
.. autoclass:: telegram.InputTextMessageContent
:members:
:undoc-members:
:show-inheritance:
@@ -1,7 +1,6 @@
telegram.inputvenuemessagecontent module
========================================
telegram.InputVenueMessageContent
=================================
.. automodule:: telegram.inputvenuemessagecontent
.. autoclass:: telegram.InputVenueMessageContent
:members:
:undoc-members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.Invoice
================
.. autoclass:: telegram.Invoice
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.keyboardbutton module
==============================
telegram.KeyboardButton
=======================
.. automodule:: telegram.keyboardbutton
.. autoclass:: telegram.KeyboardButton
:members:
:undoc-members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.LabeledPrice
=====================
.. autoclass:: telegram.LabeledPrice
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.location module
========================
telegram.Location
=================
.. automodule:: telegram.location
.. autoclass:: telegram.Location
:members:
:undoc-members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.MaskPosition
=====================
.. autoclass:: telegram.MaskPosition
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.message module
=======================
telegram.Message
================
.. automodule:: telegram.message
.. autoclass:: telegram.Message
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.messageentity module
=============================
telegram.MessageEntity
======================
.. automodule:: telegram.messageentity
.. autoclass:: telegram.MessageEntity
:members:
:undoc-members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.OrderInfo
==================
.. autoclass:: telegram.OrderInfo
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.parsemode module
=========================
telegram.ParseMode
==================
.. automodule:: telegram.parsemode
.. autoclass:: telegram.ParseMode
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.photosize module
=========================
telegram.PhotoSize
==================
.. automodule:: telegram.photosize
.. autoclass:: telegram.PhotoSize
:members:
:undoc-members:
:show-inheritance:
@@ -0,0 +1,6 @@
telegram.PreCheckoutQuery
=========================
.. autoclass:: telegram.PreCheckoutQuery
:members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.replykeyboardmarkup module
===================================
telegram.ReplyKeyboardMarkup
============================
.. automodule:: telegram.replykeyboardmarkup
.. autoclass:: telegram.ReplyKeyboardMarkup
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.replykeyboardremove module
===================================
telegram.ReplyKeyboardRemove
============================
.. automodule:: telegram.replykeyboardremove
.. autoclass:: telegram.ReplyKeyboardRemove
:members:
:undoc-members:
:show-inheritance:
+3 -4
View File
@@ -1,7 +1,6 @@
telegram.replymarkup module
===========================
telegram.ReplyMarkup
====================
.. automodule:: telegram.replymarkup
.. autoclass:: telegram.ReplyMarkup
:members:
:undoc-members:
:show-inheritance:
+64 -29
View File
@@ -1,33 +1,59 @@
telegram package
================
Submodules
----------
.. toctree::
telegram.contrib
telegram.ext
telegram.animation
telegram.audio
telegram.base
telegram.bot
telegram.callbackgame
telegram.callbackquery
telegram.chat
telegram.chataction
telegram.chatmember
telegram.choseninlineresult
telegram.chatphoto
telegram.constants
telegram.contact
telegram.document
telegram.error
telegram.file
telegram.forcereply
telegram.game
telegram.gamehighscore
telegram.inlinekeyboardbutton
telegram.inlinekeyboardmarkup
telegram.inputfile
telegram.keyboardbutton
telegram.location
telegram.message
telegram.messageentity
telegram.parsemode
telegram.photosize
telegram.replykeyboardremove
telegram.replykeyboardmarkup
telegram.replymarkup
telegram.telegramobject
telegram.update
telegram.user
telegram.userprofilephotos
telegram.venue
telegram.video
telegram.videonote
telegram.voice
telegram.webhookinfo
Stickers
--------
.. toctree::
telegram.sticker
telegram.stickerset
telegram.maskposition
Inline Mode
-----------
.. toctree::
telegram.inlinequery
telegram.inlinequeryresult
telegram.inlinequeryresultarticle
@@ -50,29 +76,37 @@ Submodules
telegram.inlinequeryresultvenue
telegram.inlinequeryresultvideo
telegram.inlinequeryresultvoice
telegram.inputcontactmessagecontent
telegram.inputfile
telegram.inputlocationmessagecontent
telegram.inputmessagecontent
telegram.inputtextmessagecontent
telegram.inputlocationmessagecontent
telegram.inputvenuemessagecontent
telegram.keyboardbutton
telegram.location
telegram.message
telegram.messageentity
telegram.parsemode
telegram.photosize
telegram.replykeyboardremove
telegram.replykeyboardmarkup
telegram.replymarkup
telegram.sticker
telegram.update
telegram.user
telegram.userprofilephotos
telegram.venue
telegram.video
telegram.voice
telegram.webhookinfo
telegram.inputcontactmessagecontent
telegram.choseninlineresult
Payments
--------
.. toctree::
telegram.labeledprice
telegram.invoice
telegram.shippingaddress
telegram.orderinfo
telegram.shippingoption
telegram.successfulpayment
telegram.shippingquery
telegram.precheckoutquery
Games
-----
.. toctree::
telegram.game
telegram.animation
telegram.callbackgame
telegram.gamehighscore
Module contents
---------------
@@ -81,3 +115,4 @@ Module contents
:members:
:undoc-members:
:show-inheritance:
:noindex:
+6
View File
@@ -0,0 +1,6 @@
telegram.ShippingAddress
========================
.. autoclass:: telegram.ShippingAddress
:members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.ShippingOption
=======================
.. autoclass:: telegram.ShippingOption
:members:
:show-inheritance:
+6
View File
@@ -0,0 +1,6 @@
telegram.ShippingQuery
======================
.. autoclass:: telegram.ShippingQuery
:members:
:show-inheritance:

Some files were not shown because too many files have changed in this diff Show More