mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2026-06-27 19:54:38 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c2aaea3c1 | |||
| 50a4cffe98 |
@@ -0,0 +1,5 @@
|
||||
[run]
|
||||
source = telegram
|
||||
|
||||
[report]
|
||||
omit = tests/
|
||||
+21
-42
@@ -1,10 +1,10 @@
|
||||
How To Contribute
|
||||
=================
|
||||
===================
|
||||
|
||||
Every open source project lives from the generous help by contributors that sacrifice their time and ``python-telegram-bot`` is no different. To make participation as pleasant as possible, this project adheres to the `Code of Conduct`_ by the Python Software Foundation.
|
||||
|
||||
Setting things up
|
||||
-----------------
|
||||
-------------------
|
||||
|
||||
1. Fork the ``python-telegram-bot`` repository to your GitHub account.
|
||||
|
||||
@@ -12,7 +12,7 @@ Setting things up
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ git clone https://github.com/<your username>/python-telegram-bot --recursive
|
||||
$ git clone https://github.com/<your username>/python-telegram-bot
|
||||
$ cd python-telegram-bot
|
||||
|
||||
3. Add a track to the original repository:
|
||||
@@ -35,7 +35,7 @@ Setting things up
|
||||
$ pre-commit install
|
||||
|
||||
Finding something to do
|
||||
#######################
|
||||
###################
|
||||
|
||||
If you already know what you'd like to work on, you can skip this section.
|
||||
|
||||
@@ -44,7 +44,7 @@ If you have an idea for something to do, first check if it's already been filed
|
||||
Another great way to start contributing is by writing tests. Tests are really important because they help prevent developers from accidentally breaking existing code, allowing them to build cool things faster. If you're interested in helping out, let the development team know by posting to the `developers' mailing list`_, and we'll help you get started.
|
||||
|
||||
Instructions for making a code change
|
||||
#####################################
|
||||
####################
|
||||
|
||||
The central development branch is ``master``, which should be clean and ready for release at any time. In general, all changes should be done as feature branches based off of ``master``.
|
||||
|
||||
@@ -85,12 +85,6 @@ Here's how to make a one-off code change.
|
||||
|
||||
$ make test
|
||||
|
||||
If you don't have ``make``, do:
|
||||
|
||||
.. code-block::
|
||||
|
||||
$ pytest -v
|
||||
|
||||
- To actually make the commit (this will trigger tests for yapf, lint and pep8 automatically):
|
||||
|
||||
.. code-block:: bash
|
||||
@@ -129,19 +123,13 @@ Here's how to make a one-off code change.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ git checkout your-branch-name
|
||||
$ git fetch upstream
|
||||
$ git merge upstream/master
|
||||
$ ...[fix the conflicts]...
|
||||
$ ...[make sure the tests pass before committing]...
|
||||
$ git commit -a
|
||||
$ git push origin your-branch-name
|
||||
|
||||
- If after merging you see local modified files in ``telegram/vendor/`` directory, that you didn't actually touch, that means you need to update submodules with this command:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ git submodule update --init --recursive
|
||||
$ git checkout your-branch-name
|
||||
$ git fetch upstream
|
||||
$ git merge upstream/master
|
||||
$ ...[fix the conflicts]...
|
||||
$ ...[make sure the tests pass before committing]...
|
||||
$ git commit -a
|
||||
$ git push origin your-branch-name
|
||||
|
||||
- At the end, the reviewer will merge the pull request.
|
||||
|
||||
@@ -155,29 +143,20 @@ Here's how to make a one-off code change.
|
||||
7. **Celebrate.** Congratulations, you have contributed to ``python-telegram-bot``!
|
||||
|
||||
Style commandments
|
||||
------------------
|
||||
---------------------
|
||||
|
||||
Specific commandments
|
||||
#####################
|
||||
|
||||
- Avoid using "double quotes" where you can reasonably use 'single quotes'.
|
||||
|
||||
Assert comparison order
|
||||
#######################
|
||||
AssertEqual argument order
|
||||
######################
|
||||
|
||||
- assert statements should compare in **actual** == **expected** order.
|
||||
For example (assuming ``test_call`` is the thing being tested):
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# GOOD
|
||||
assert test_call() == 5
|
||||
|
||||
# BAD
|
||||
assert 5 == test_call()
|
||||
- assertEqual method's arguments should be in ('actual', 'expected') order.
|
||||
|
||||
Properly calling callables
|
||||
##########################
|
||||
#######################
|
||||
|
||||
Methods, functions and classes can specify optional parameters (with default
|
||||
values) using Python's keyword arg syntax. When providing a value to such a
|
||||
@@ -195,7 +174,7 @@ This gives us the flexibility to re-order arguments and more importantly
|
||||
to add new required arguments. It's also more explicit and easier to read.
|
||||
|
||||
Properly defining optional arguments
|
||||
####################################
|
||||
########################
|
||||
|
||||
It's always good to not initialize optional arguments at class creation,
|
||||
instead use ``**kwargs`` to get them. It's well known Telegram API can
|
||||
@@ -205,11 +184,11 @@ break the API classes. For example:
|
||||
.. code-block:: python
|
||||
|
||||
# GOOD
|
||||
def __init__(self, id, name, last_name=None, **kwargs):
|
||||
self.last_name = last_name
|
||||
def __init__(self, id, name, **kwargs):
|
||||
self.last_name = kwargs.get('last_name', '')
|
||||
|
||||
# BAD
|
||||
def __init__(self, id, name, last_name=None):
|
||||
def __init__(self, id, name, last_name=''):
|
||||
self.last_name = last_name
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
<!--
|
||||
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
|
||||
|
||||
@@ -65,14 +65,6 @@ target/
|
||||
# unitests files
|
||||
telegram.mp3
|
||||
telegram.mp4
|
||||
telegram2.mp4
|
||||
telegram.ogg
|
||||
telegram.png
|
||||
telegram.webp
|
||||
telegram.jpg
|
||||
|
||||
# original files from merges
|
||||
*.orig
|
||||
|
||||
# Exclude .exrc file for Vim
|
||||
.exrc
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
[submodule "telegram/vendor/urllib3"]
|
||||
path = telegram/vendor/ptb_urllib3
|
||||
url = https://github.com/python-telegram-bot/urllib3.git
|
||||
branch = ptb
|
||||
@@ -1,20 +1,18 @@
|
||||
- repo: git://github.com/python-telegram-bot/mirrors-yapf
|
||||
sha: master
|
||||
- repo: git://github.com/pre-commit/mirrors-yapf
|
||||
sha: v0.11.0
|
||||
hooks:
|
||||
- id: yapf
|
||||
files: ^(telegram|tests)/.*\.py$
|
||||
args:
|
||||
- --diff
|
||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||
sha: 78818b90cd694c29333ba54d38f9e60b6359ccfc
|
||||
sha: 18d7035de5388cc7775be57f529c154bf541aab9
|
||||
hooks:
|
||||
- id: flake8
|
||||
files: ^telegram/.*\.py$
|
||||
- repo: git://github.com/pre-commit/mirrors-pylint
|
||||
sha: v1.7.1
|
||||
sha: v1.5.5
|
||||
hooks:
|
||||
- id: pylint
|
||||
files: ^telegram/.*\.py$
|
||||
args:
|
||||
- --errors-only
|
||||
- --disable=import-error
|
||||
- --disable=no-name-in-module,import-error
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# syntax: https://docs.readthedocs.io/en/latest/yaml-config.html
|
||||
|
||||
formats:
|
||||
- pdf
|
||||
|
||||
python:
|
||||
setup_py_install: true
|
||||
|
||||
requirements_file: docs/requirements-docs.txt
|
||||
+8
-28
@@ -4,35 +4,15 @@ python:
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
- "pypy-5.7.1"
|
||||
- "pypy3.5-5.8.0"
|
||||
|
||||
dist: trusty
|
||||
sudo: false
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.cache/pip
|
||||
- $HOME/.pre-commit
|
||||
before_cache:
|
||||
- rm -f $HOME/.cache/pip/log/debug.log
|
||||
- rm -f $HOME/.pre-commit/pre-commit.log
|
||||
|
||||
- "pypy"
|
||||
- "pypy3"
|
||||
install:
|
||||
- pip install coveralls pytest-cov
|
||||
- pip install -U wheel
|
||||
- pip install -U -r requirements.txt
|
||||
- pip install -U -r requirements-dev.txt
|
||||
- pip install coveralls
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r requirements-dev.txt
|
||||
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
|
||||
|
||||
script:
|
||||
- pytest -v --cov=telegram
|
||||
|
||||
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
|
||||
- if [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi
|
||||
after_success:
|
||||
- coverage combine
|
||||
- coveralls
|
||||
coveralls
|
||||
|
||||
+2
-31
@@ -1,64 +1,35 @@
|
||||
Credits
|
||||
=======
|
||||
|
||||
``python-telegram-bot`` was originally created by
|
||||
`Leandro Toledo <https://github.com/leandrotoledo>`_ and is now maintained by
|
||||
`Jannes Höke <https://github.com/jh0ker>`_ (`@jh0ker <https://t.me/jh0ker>`_ on Telegram) and
|
||||
`Noam Meltzer <https://github.com/tsnoam>`_.
|
||||
|
||||
We're vendoring urllib3 as part of ``python-telegram-bot`` which is distributed under the MIT
|
||||
license. For more info, full credits & license terms, the sources can be found here:
|
||||
`https://github.com/python-telegram-bot/urllib3`.
|
||||
``python-telegram-bot`` is written and maintained by `Leandro Toledo <https://github.com/leandrotoledo>`_.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
The following wonderful people contributed directly or indirectly to this project:
|
||||
|
||||
- `Alateas <https://github.com/alateas>`_
|
||||
- `Anton Tagunov <https://github.com/anton-tagunov>`_
|
||||
- `Avanatiker <https://github.com/Avanatiker>`_
|
||||
- `Balduro <https://github.com/Balduro>`_
|
||||
- `bimmlerd <https://github.com/bimmlerd>`_
|
||||
- `d-qoi <https://github.com/d-qoi>`_
|
||||
- `daimajia <https://github.com/daimajia>`_
|
||||
- `Eli Gao <https://github.com/eligao>`_
|
||||
- `ErgoZ Riftbit Vaper <https://github.com/ergoz>`_
|
||||
- `Eugene Lisitsky <https://github.com/lisitsky>`_
|
||||
- `Eugenio Panadero <https://github.com/azogue>`_
|
||||
- `evgfilim1 <https://github.com/evgfilim1>`_
|
||||
- `franciscod <https://github.com/franciscod>`_
|
||||
- `Hugo Damer <https://github.com/HakimusGIT>`_
|
||||
- `ihoru <https://github.com/ihoru>`_
|
||||
- `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>`_
|
||||
- `jlmadurga <https://github.com/jlmadurga>`_
|
||||
- `John Yong <https://github.com/whipermr5>`_
|
||||
- `Joscha Götzer <https://github.com/Rostgnom>`_
|
||||
- `jossalgon <https://github.com/jossalgon>`_
|
||||
- `JRoot3D <https://github.com/JRoot3D>`_
|
||||
- `Kjwon15 <https://github.com/kjwon15>`_
|
||||
- `jlmadurga <https://github.com/jlmadurga>`_
|
||||
- `Li-aung Yip <https://github.com/LiaungYip>`_
|
||||
- `macrojames <https://github.com/macrojames>`_
|
||||
- `Michael Elovskikh <https://github.com/wronglink>`_
|
||||
- `naveenvhegde <https://github.com/naveenvhegde>`_
|
||||
- `neurrone <https://github.com/neurrone>`_
|
||||
- `njittam <https://github.com/njittam>`_
|
||||
- `Noam Meltzer <https://github.com/tsnoam>`_
|
||||
- `Oleg Shlyazhko <https://github.com/ollmer>`_
|
||||
- `overquota <https://github.com/overquota>`_
|
||||
- `Patrick Hofmann <https://github.com/PH89>`_
|
||||
- `Pieter Schutz <https://github.com/eldinnie>`_
|
||||
- `Rahiel Kasim <https://github.com/rahiel>`_
|
||||
- `Sascha <https://github.com/saschalalala>`_
|
||||
- `Shelomentsev D <https://github.com/shelomentsevd>`_
|
||||
- `sooyhwang <https://github.com/sooyhwang>`_
|
||||
- `thodnev <https://github.com/thodnev>`_
|
||||
- `Valentijn <https://github.com/Faalentijn>`_
|
||||
- `voider1 <https://github.com/voider1>`_
|
||||
- `wjt <https://github.com/wjt>`_
|
||||
|
||||
Please add yourself here alphabetically when you submit your first pull request.
|
||||
|
||||
+3
-139
@@ -1,147 +1,12 @@
|
||||
=======
|
||||
Changes
|
||||
=======
|
||||
**2017-09-01**
|
||||
*Released 8.0.0*
|
||||
|
||||
New features
|
||||
**2016-10-10**
|
||||
|
||||
- Fully support Bot Api 3.3 (PR `#806`_).
|
||||
- DispatcherHandlerStop (`see docs`_).
|
||||
- Regression fix for text_html & text_markdown (PR `#777`_).
|
||||
- Added effective_attachment to message (PR `#766`_).
|
||||
*Released 5.1.1*
|
||||
|
||||
Non backward compatible changes
|
||||
|
||||
- Removed Botan support from the library (PR `#776`_).
|
||||
- Fully support Bot Api 3.3 (PR `#806`_).
|
||||
- Remove de_json() (PR `#789`_).
|
||||
|
||||
Changes
|
||||
|
||||
- Sane defaults for tcp socket options on linux (PR `#754`_).
|
||||
- Add RESTRICTED as constant to ChatMember (PR `#761`_).
|
||||
- Add rich comparison to CallbackQuery (PR `#764`_).
|
||||
- Fix get_game_high_scores (PR `#771`_).
|
||||
- Warn on small con_pool_size during custom initalization of Updater (PR `#793`_).
|
||||
- Catch exceptions in error handlerfor errors that happen during polling (PR `#810`_).
|
||||
- For testing we switched to pytest (PR `#788`_).
|
||||
- Lot's of small improvements to our tests and documentation.
|
||||
|
||||
|
||||
.. _`see docs`: http://python-telegram-bot.readthedocs.io/en/stable/telegram.ext.dispatcher.html#telegram.ext.Dispatcher.add_handler
|
||||
.. _`#777`: https://github.com/python-telegram-bot/python-telegram-bot/pull/777
|
||||
.. _`#806`: https://github.com/python-telegram-bot/python-telegram-bot/pull/806
|
||||
.. _`#766`: https://github.com/python-telegram-bot/python-telegram-bot/pull/766
|
||||
.. _`#776`: https://github.com/python-telegram-bot/python-telegram-bot/pull/776
|
||||
.. _`#789`: https://github.com/python-telegram-bot/python-telegram-bot/pull/789
|
||||
.. _`#754`: https://github.com/python-telegram-bot/python-telegram-bot/pull/754
|
||||
.. _`#761`: https://github.com/python-telegram-bot/python-telegram-bot/pull/761
|
||||
.. _`#764`: https://github.com/python-telegram-bot/python-telegram-bot/pull/764
|
||||
.. _`#771`: https://github.com/python-telegram-bot/python-telegram-bot/pull/771
|
||||
.. _`#788`: https://github.com/python-telegram-bot/python-telegram-bot/pull/788
|
||||
.. _`#793`: https://github.com/python-telegram-bot/python-telegram-bot/pull/793
|
||||
.. _`#810`: https://github.com/python-telegram-bot/python-telegram-bot/pull/810
|
||||
|
||||
**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*
|
||||
|
||||
- Fully support Bot API 3.0
|
||||
- Add more fine-grained filters for status updates
|
||||
- Bug fixes and other improvements
|
||||
|
||||
**2017-05-29**
|
||||
|
||||
*Released 6.0.3*
|
||||
|
||||
- Faulty PyPI release
|
||||
|
||||
**2017-05-29**
|
||||
|
||||
*Released 6.0.2*
|
||||
|
||||
- Avoid confusion with user's ``urllib3`` by renaming vendored ``urllib3`` to ``ptb_urllib3``
|
||||
|
||||
**2017-05-19**
|
||||
|
||||
*Released 6.0.1*
|
||||
|
||||
- Add support for ``User.language_code``
|
||||
- Fix ``Message.text_html`` and ``Message.text_markdown`` for messages with emoji
|
||||
|
||||
**2017-05-19**
|
||||
|
||||
*Released 6.0.0*
|
||||
|
||||
- Add support for Bot API 2.3.1
|
||||
- Add support for ``deleteMessage`` API method
|
||||
- New, simpler API for ``JobQueue`` - https://github.com/python-telegram-bot/python-telegram-bot/pull/484
|
||||
- Download files into file-like objects - https://github.com/python-telegram-bot/python-telegram-bot/pull/459
|
||||
- Use vendor ``urllib3`` to address issues with timeouts
|
||||
- The default timeout for messages is now 5 seconds. For sending media, the default timeout is now 20 seconds.
|
||||
- String attributes that are not set are now ``None`` by default, instead of empty strings
|
||||
- Add ``text_markdown`` and ``text_html`` properties to ``Message`` - https://github.com/python-telegram-bot/python-telegram-bot/pull/507
|
||||
- Add support for Socks5 proxy - https://github.com/python-telegram-bot/python-telegram-bot/pull/518
|
||||
- Add support for filters in ``CommandHandler`` - https://github.com/python-telegram-bot/python-telegram-bot/pull/536
|
||||
- Add the ability to invert (not) filters - https://github.com/python-telegram-bot/python-telegram-bot/pull/552
|
||||
- Add ``Filters.group`` and ``Filters.private``
|
||||
- Compatibility with GAE via ``urllib3.contrib`` package - https://github.com/python-telegram-bot/python-telegram-bot/pull/583
|
||||
- Add equality rich comparision operators to telegram objects - https://github.com/python-telegram-bot/python-telegram-bot/pull/604
|
||||
- Several bugfixes and other improvements
|
||||
- Remove some deprecated code
|
||||
|
||||
**2017-04-17**
|
||||
|
||||
*Released 5.3.1*
|
||||
|
||||
- Hotfix release due to bug introduced by urllib3 version 1.21
|
||||
|
||||
**2016-12-11**
|
||||
|
||||
*Released 5.3*
|
||||
|
||||
- Implement API changes of November 21st (Bot API 2.3)
|
||||
- ``JobQueue`` now supports ``datetime.timedelta`` in addition to seconds
|
||||
- ``JobQueue`` now supports running jobs only on certain days
|
||||
- New ``Filters.reply`` filter
|
||||
- Bugfix for ``Message.edit_reply_markup``
|
||||
- Other bugfixes
|
||||
|
||||
**2016-10-25**
|
||||
|
||||
*Released 5.2*
|
||||
|
||||
- Implement API changes of October 3rd (games update)
|
||||
- Add ``Message.edit_*`` methods
|
||||
- Filters for the ``MessageHandler`` can now be combined using bitwise operators (``& and |``)
|
||||
- Add a way to save user- and chat-related data temporarily
|
||||
- Other bugfixes and improvements
|
||||
- Fix documentation builds on readthedocs
|
||||
|
||||
**2016-09-24**
|
||||
|
||||
@@ -166,7 +31,6 @@ Changes
|
||||
|
||||
- Rework ``JobQueue``
|
||||
- Introduce ``ConversationHandler``
|
||||
- Introduce ``telegram.constants`` - https://github.com/python-telegram-bot/python-telegram-bot/pull/342
|
||||
|
||||
**2016-07-12**
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.PHONY: clean pep257 pep8 yapf lint test install
|
||||
|
||||
PYLINT := pylint
|
||||
PYTEST := pytest
|
||||
NOSETESTS := nosetests
|
||||
PEP257 := pep257
|
||||
PEP8 := flake8
|
||||
YAPF := yapf
|
||||
@@ -29,7 +29,7 @@ lint:
|
||||
$(PYLINT) -E telegram --disable=no-name-in-module,import-error
|
||||
|
||||
test:
|
||||
$(PYTEST) -v
|
||||
$(NOSETESTS) -v
|
||||
|
||||
install:
|
||||
$(PIP) install -r requirements.txt -r requirements-dev.txt
|
||||
@@ -41,11 +41,11 @@ help:
|
||||
@echo "- pep8 Check style with flake8"
|
||||
@echo "- lint Check style with pylint"
|
||||
@echo "- yapf Check style with yapf"
|
||||
@echo "- test Run tests using pytest"
|
||||
@echo "- test Run tests"
|
||||
@echo
|
||||
@echo "Available variables:"
|
||||
@echo "- PYLINT default: $(PYLINT)"
|
||||
@echo "- PYTEST default: $(PYTEST)"
|
||||
@echo "- NOSETESTS default: $(NOSETESTS)"
|
||||
@echo "- PEP257 default: $(PEP257)"
|
||||
@echo "- PEP8 default: $(PEP8)"
|
||||
@echo "- YAPF default: $(YAPF)"
|
||||
|
||||
+6
-16
@@ -15,12 +15,8 @@ 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/
|
||||
:target: https://pythonhosted.org/python-telegram-bot/
|
||||
:alt: Documentation Status
|
||||
|
||||
.. image:: https://img.shields.io/pypi/l/python-telegram-bot.svg
|
||||
@@ -41,7 +37,7 @@ We have made you a wrapper you can't refuse
|
||||
|
||||
.. image:: http://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg
|
||||
:target: http://isitmaintained.com/project/python-telegram-bot/python-telegram-bot
|
||||
:alt: Median time to resolve an issue
|
||||
:alt: Average time to resolve an issue
|
||||
|
||||
.. image:: https://img.shields.io/badge/Telegram-Group-blue.svg
|
||||
:target: https://telegram.me/pythontelegrambotgroup
|
||||
@@ -88,7 +84,7 @@ make the development of bots easy and straightforward. These classes are contain
|
||||
Telegram API support
|
||||
====================
|
||||
|
||||
As of **23. July 2017**, all types and methods of the Telegram Bot API 3.2 are supported.
|
||||
As of **28. May 2016**, all types and methods of the Telegram Bot API are supported.
|
||||
|
||||
==========
|
||||
Installing
|
||||
@@ -104,15 +100,9 @@ Or you can install from source with:
|
||||
|
||||
.. code:: shell
|
||||
|
||||
$ git clone https://github.com/python-telegram-bot/python-telegram-bot --recursive
|
||||
$ git clone https://github.com/python-telegram-bot/python-telegram-bot
|
||||
$ cd python-telegram-bot
|
||||
$ python setup.py install
|
||||
|
||||
In case you have a previously cloned local repository already, you should initialize the added urllib3 submodule before installing with:
|
||||
|
||||
.. code:: shell
|
||||
|
||||
$ git submodule update --init --recursive
|
||||
|
||||
===============
|
||||
Getting started
|
||||
@@ -126,7 +116,7 @@ Our Wiki contains a lot of resources to get you started with ``python-telegram-b
|
||||
Other references:
|
||||
|
||||
- `Telegram API documentation <https://core.telegram.org/bots/api>`_
|
||||
- `python-telegram-bot documentation <https://python-telegram-bot.readthedocs.io/>`_
|
||||
- `python-telegram-bot documentation <https://pythonhosted.org/python-telegram-bot/>`_
|
||||
|
||||
-------------------
|
||||
Learning by example
|
||||
@@ -172,7 +162,7 @@ If you want DEBUG logs instead:
|
||||
Documentation
|
||||
=============
|
||||
|
||||
``python-telegram-bot``'s documentation lives at `readthedocs.io <https://python-telegram-bot.readthedocs.io/>`_.
|
||||
``python-telegram-bot``'s documentation lives at `pythonhosted.org <https://pythonhosted.org/python-telegram-bot/>`_.
|
||||
|
||||
============
|
||||
Getting help
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
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\\pytest -v --cov=telegram"
|
||||
@@ -1,3 +1,3 @@
|
||||
sphinx>=1.5.4
|
||||
sphinx
|
||||
sphinx_rtd_theme
|
||||
sphinx-pypi-upload
|
||||
|
||||
+12
-32
@@ -11,6 +11,7 @@
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys
|
||||
import os
|
||||
import shlex
|
||||
@@ -24,7 +25,7 @@ sys.path.insert(0, os.path.abspath('../..'))
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
needs_sphinx = '1.5.4' # fixes issues with autodoc-skip-member and napoleon
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
@@ -50,7 +51,7 @@ master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'Python Telegram Bot'
|
||||
copyright = u'2015-2017, Leandro Toledo'
|
||||
copyright = u'2015-2016, Leandro Toledo'
|
||||
author = u'Leandro Toledo'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
@@ -58,9 +59,9 @@ author = u'Leandro Toledo'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '8.0' # telegram.__version__[:3]
|
||||
version = '5.1' # telegram.__version__[:3]
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '8.0.0' # telegram.__version__
|
||||
release = '5.1.1' # telegram.__version__
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
@@ -130,12 +131,12 @@ html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
html_logo = 'ptb-logo-orange.png'
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
html_favicon = 'ptb-logo-orange.ico'
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
@@ -208,17 +209,14 @@ htmlhelp_basename = 'PythonTelegramBotdoc'
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
'papersize': 'a4paper',
|
||||
#'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
'preamble': r'''\setcounter{tocdepth}{2}
|
||||
\usepackage{enumitem}
|
||||
\setlistdepth{99}''',
|
||||
#'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#'figure_align': 'htbp',
|
||||
@@ -229,12 +227,12 @@ latex_elements = {
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'PythonTelegramBot.tex', u'Python Telegram Bot Documentation',
|
||||
author, 'manual'),
|
||||
u'Leandro Toledo', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
latex_logo = 'ptb-logo_1024.png'
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
@@ -273,7 +271,7 @@ man_pages = [
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'PythonTelegramBot', u'Python Telegram Bot Documentation',
|
||||
author, 'PythonTelegramBot', "We have made you a wrapper you can't refuse",
|
||||
author, 'PythonTelegramBot', 'Not just a Python wrapper around the Telegram Bot API',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
@@ -288,21 +286,3 @@ texinfo_documents = [
|
||||
|
||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||
#texinfo_no_detailmenu = False
|
||||
|
||||
# -- script stuff --------------------------------------------------------
|
||||
|
||||
import inspect
|
||||
|
||||
|
||||
def autodoc_skip_member(app, what, name, obj, skip, options):
|
||||
try:
|
||||
if inspect.getmodule(obj).__name__.startswith('telegram') and inspect.isfunction(obj):
|
||||
if name.lower() != name:
|
||||
return True
|
||||
except AttributeError:
|
||||
pass
|
||||
# Return None so napoleon can handle it
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.connect('autodoc-skip-member', autodoc_skip_member)
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
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>`_.
|
||||
Contents:
|
||||
telegram
|
||||
|
||||
.. toctree::
|
||||
telegram
|
||||
:maxdepth: 2
|
||||
|
||||
|
||||
|
||||
Indices and tables
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
telegram
|
||||
========
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 4
|
||||
|
||||
telegram
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 361 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 71 KiB |
@@ -1,6 +0,0 @@
|
||||
telegram.Animation
|
||||
==================
|
||||
|
||||
.. autoclass:: telegram.Animation
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.Audio
|
||||
==============
|
||||
telegram.audio module
|
||||
=====================
|
||||
|
||||
.. autoclass:: telegram.Audio
|
||||
.. automodule:: telegram.audio
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
telegram.base module
|
||||
====================
|
||||
|
||||
.. automodule:: telegram.base
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,6 @@
|
||||
telegram.Bot
|
||||
============
|
||||
telegram.bot module
|
||||
===================
|
||||
|
||||
.. autoclass:: telegram.Bot
|
||||
.. automodule:: telegram.bot
|
||||
:members:
|
||||
:show-inheritance:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.Callbackgame
|
||||
=====================
|
||||
|
||||
.. autoclass:: telegram.CallbackGame
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.CallbackQuery
|
||||
======================
|
||||
|
||||
.. autoclass:: telegram.CallbackQuery
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.Chat
|
||||
=============
|
||||
telegram.chat module
|
||||
=========================
|
||||
|
||||
.. autoclass:: telegram.Chat
|
||||
.. automodule:: telegram.chat
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ChatAction
|
||||
===================
|
||||
telegram.chataction module
|
||||
==========================
|
||||
|
||||
.. autoclass:: telegram.ChatAction
|
||||
.. automodule:: telegram.chataction
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.ChatMember
|
||||
===================
|
||||
|
||||
.. autoclass:: telegram.ChatMember
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.ChatPhoto
|
||||
==================
|
||||
|
||||
.. autoclass:: telegram.ChatPhoto
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ChosenInlineResult
|
||||
===========================
|
||||
telegram.choseninlineresult module
|
||||
==================================
|
||||
|
||||
.. autoclass:: telegram.ChosenInlineResult
|
||||
.. automodule:: telegram.choseninlineresult
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.constants Module
|
||||
telegram.constants module
|
||||
=========================
|
||||
|
||||
.. automodule:: telegram.constants
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.Contact
|
||||
================
|
||||
telegram.contact module
|
||||
=======================
|
||||
|
||||
.. autoclass:: telegram.Contact
|
||||
.. automodule:: telegram.contact
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
telegram.contrib.botan module
|
||||
=============================
|
||||
|
||||
.. automodule:: telegram.contrib.botan
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.Document
|
||||
=================
|
||||
telegram.document module
|
||||
========================
|
||||
|
||||
.. autoclass:: telegram.Document
|
||||
.. automodule:: telegram.document
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.CallbackQueryHandler
|
||||
=================================
|
||||
telegram.ext.callbackqueryhandler module
|
||||
========================================
|
||||
|
||||
.. autoclass:: telegram.ext.CallbackQueryHandler
|
||||
.. automodule:: telegram.ext.callbackqueryhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.ChosenInlineResultHandler
|
||||
======================================
|
||||
telegram.ext.choseninlineresulthandler module
|
||||
=============================================
|
||||
|
||||
.. autoclass:: telegram.ext.ChosenInlineResultHandler
|
||||
.. automodule:: telegram.ext.choseninlineresulthandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.CommandHandler
|
||||
===========================
|
||||
telegram.ext.commandhandler module
|
||||
==================================
|
||||
|
||||
.. autoclass:: telegram.ext.CommandHandler
|
||||
.. automodule:: telegram.ext.commandhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.ConversationHandler
|
||||
================================
|
||||
telegram.ext.conversationhandler module
|
||||
=======================================
|
||||
|
||||
.. autoclass:: telegram.ext.ConversationHandler
|
||||
.. automodule:: telegram.ext.conversationhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
telegram.ext.DelayQueue
|
||||
=======================
|
||||
|
||||
.. autoclass:: telegram.ext.DelayQueue
|
||||
:members:
|
||||
:show-inheritance:
|
||||
:special-members:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.Dispatcher
|
||||
=======================
|
||||
telegram.ext.dispatcher module
|
||||
==============================
|
||||
|
||||
.. autoclass:: telegram.ext.Dispatcher
|
||||
.. automodule:: telegram.ext.dispatcher
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.ext.filters Module
|
||||
===========================
|
||||
|
||||
.. automodule:: telegram.ext.filters
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,7 +1,7 @@
|
||||
telegram.ext.Handler
|
||||
====================
|
||||
telegram.ext.handler module
|
||||
===========================
|
||||
|
||||
.. autoclass:: telegram.ext.Handler
|
||||
.. automodule:: telegram.ext.handler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.InlineQueryHandler
|
||||
===============================
|
||||
telegram.ext.inlinequeryhandler module
|
||||
======================================
|
||||
|
||||
.. autoclass:: telegram.ext.InlineQueryHandler
|
||||
.. automodule:: telegram.ext.inlinequeryhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.JobQueue
|
||||
=====================
|
||||
telegram.ext.jobqueue module
|
||||
============================
|
||||
|
||||
.. autoclass:: telegram.ext.JobQueue
|
||||
.. automodule:: telegram.ext.jobqueue
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.MessageHandler
|
||||
===========================
|
||||
telegram.ext.messagehandler module
|
||||
==================================
|
||||
|
||||
.. autoclass:: telegram.ext.MessageHandler
|
||||
.. automodule:: telegram.ext.messagehandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
telegram.ext.MessageQueue
|
||||
=========================
|
||||
|
||||
.. autoclass:: telegram.ext.MessageQueue
|
||||
:members:
|
||||
:show-inheritance:
|
||||
:special-members:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.ext.PreCheckoutQueryHandler
|
||||
====================================
|
||||
|
||||
.. autoclass:: telegram.ext.PreCheckoutQueryHandler
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.RegexHandler
|
||||
=========================
|
||||
telegram.ext.regexhandler module
|
||||
================================
|
||||
|
||||
.. autoclass:: telegram.ext.RegexHandler
|
||||
.. automodule:: telegram.ext.regexhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,30 +1,29 @@
|
||||
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
|
||||
telegram.ext.conversationhandler
|
||||
telegram.ext.commandhandler
|
||||
telegram.ext.inlinequeryhandler
|
||||
telegram.ext.messagehandler
|
||||
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:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.ext.ShippingQueryHandler
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.ext.ShippingQueryHandler
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.StringCommandHandler
|
||||
=================================
|
||||
telegram.ext.stringcommandhandler module
|
||||
========================================
|
||||
|
||||
.. autoclass:: telegram.ext.StringCommandHandler
|
||||
.. automodule:: telegram.ext.stringcommandhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.StringRegexHandler
|
||||
===============================
|
||||
telegram.ext.stringregexhandler module
|
||||
======================================
|
||||
|
||||
.. autoclass:: telegram.ext.StringRegexHandler
|
||||
.. automodule:: telegram.ext.stringregexhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.TypeHandler
|
||||
========================
|
||||
telegram.ext.typehandler module
|
||||
===============================
|
||||
|
||||
.. autoclass:: telegram.ext.TypeHandler
|
||||
.. automodule:: telegram.ext.typehandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ext.Updater
|
||||
====================
|
||||
telegram.ext.updater module
|
||||
===========================
|
||||
|
||||
.. autoclass:: telegram.ext.Updater
|
||||
.. automodule:: telegram.ext.updater
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.File
|
||||
=============
|
||||
|
||||
.. autoclass:: telegram.File
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.ForceReply
|
||||
===================
|
||||
telegram.forcereply module
|
||||
==========================
|
||||
|
||||
.. autoclass:: telegram.ForceReply
|
||||
.. automodule:: telegram.forcereply
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.Game
|
||||
=============
|
||||
|
||||
.. autoclass:: telegram.Game
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.GameHighScore
|
||||
======================
|
||||
|
||||
.. autoclass:: telegram.GameHighScore
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineKeyboardButton
|
||||
=============================
|
||||
telegram.inlinekeyboardbutton module
|
||||
===========================
|
||||
|
||||
.. autoclass:: telegram.InlineKeyboardButton
|
||||
.. automodule:: telegram.inlinekeyboardbutton
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineKeyboardMarkup
|
||||
=============================
|
||||
telegram.inlinekeyboardmarkup module
|
||||
==========================
|
||||
|
||||
.. autoclass:: telegram.InlineKeyboardMarkup
|
||||
.. automodule:: telegram.inlinekeyboardmarkup
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQuery
|
||||
====================
|
||||
telegram.inlinequery module
|
||||
===========================
|
||||
|
||||
.. autoclass:: telegram.InlineQuery
|
||||
.. automodule:: telegram.inlinequery
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResult
|
||||
==========================
|
||||
telegram.inlinequeryresult module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResult
|
||||
.. automodule:: telegram.inlinequeryresult
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultArticle
|
||||
telegram.inlinequeryresultarticle module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultArticle
|
||||
.. automodule:: telegram.inlinequeryresultarticle
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultAudio
|
||||
===============================
|
||||
telegram.inlinequeryresultaudio module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultAudio
|
||||
.. automodule:: telegram.inlinequeryresultaudio
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedAudio
|
||||
=====================================
|
||||
telegram.inlinequeryresultcachedaudio module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedAudio
|
||||
.. automodule:: telegram.inlinequeryresultcachedaudio
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedDocument
|
||||
========================================
|
||||
telegram.inlinequeryresultcacheddocument module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedDocument
|
||||
.. automodule:: telegram.inlinequeryresultcacheddocument
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedGif
|
||||
===================================
|
||||
telegram.inlinequeryresultcachedgif module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedGif
|
||||
.. automodule:: telegram.inlinequeryresultcachedgif
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedMpeg4Gif
|
||||
========================================
|
||||
telegram.inlinequeryresultcachedmpeg4gif module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedMpeg4Gif
|
||||
.. automodule:: telegram.inlinequeryresultcachedmpeg4gif
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedPhoto
|
||||
=====================================
|
||||
telegram.inlinequeryresultcachedphoto module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedPhoto
|
||||
.. automodule:: telegram.inlinequeryresultcachedphoto
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedSticker
|
||||
=======================================
|
||||
telegram.inlinequeryresultcachedsticker module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedSticker
|
||||
.. automodule:: telegram.inlinequeryresultcachedsticker
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedVideo
|
||||
=====================================
|
||||
telegram.inlinequeryresultcachedvideo module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedVideo
|
||||
.. automodule:: telegram.inlinequeryresultcachedvideo
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultCachedVoice
|
||||
=====================================
|
||||
telegram.inlinequeryresultcachedvoice module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultCachedVoice
|
||||
.. automodule:: telegram.inlinequeryresultcachedvoice
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultContact
|
||||
telegram.inlinequeryresultcontact module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultContact
|
||||
.. automodule:: telegram.inlinequeryresultcontact
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultDocument
|
||||
==================================
|
||||
telegram.inlinequeryresultdocument module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultDocument
|
||||
.. automodule:: telegram.inlinequeryresultdocument
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.InlineQueryResultGame
|
||||
==============================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultGame
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultGif
|
||||
=============================
|
||||
telegram.inlinequeryresultgif module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultGif
|
||||
.. automodule:: telegram.inlinequeryresultgif
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultLocation
|
||||
==================================
|
||||
telegram.inlinequeryresultlocation module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultLocation
|
||||
.. automodule:: telegram.inlinequeryresultlocation
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultMpeg4Gif
|
||||
==================================
|
||||
telegram.inlinequeryresultmpeg4gif module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultMpeg4Gif
|
||||
.. automodule:: telegram.inlinequeryresultmpeg4gif
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultPhoto
|
||||
===============================
|
||||
telegram.inlinequeryresultphoto module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultPhoto
|
||||
.. automodule:: telegram.inlinequeryresultphoto
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultVenue
|
||||
===============================
|
||||
telegram.inlinequeryresultvenue module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultVenue
|
||||
.. automodule:: telegram.inlinequeryresultvenue
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultVideo
|
||||
===============================
|
||||
telegram.inlinequeryresultvideo module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultVideo
|
||||
.. automodule:: telegram.inlinequeryresultvideo
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InlineQueryResultVoice
|
||||
===============================
|
||||
telegram.inlinequeryresultvoice module
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InlineQueryResultVoice
|
||||
.. automodule:: telegram.inlinequeryresultvoice
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.InputContactMessageContent
|
||||
===================================
|
||||
|
||||
.. autoclass:: telegram.InputContactMessageContent
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.InputFile
|
||||
==================
|
||||
telegram.inputfile module
|
||||
=========================
|
||||
|
||||
.. autoclass:: telegram.InputFile
|
||||
.. automodule:: telegram.inputfile
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.InputLocationMessageContent
|
||||
====================================
|
||||
|
||||
.. autoclass:: telegram.InputLocationMessageContent
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.InputMessageContent
|
||||
============================
|
||||
|
||||
.. autoclass:: telegram.InputMessageContent
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.InputTextMessageContent
|
||||
================================
|
||||
|
||||
.. autoclass:: telegram.InputTextMessageContent
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.InputVenueMessageContent
|
||||
=================================
|
||||
|
||||
.. autoclass:: telegram.InputVenueMessageContent
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.Invoice
|
||||
================
|
||||
|
||||
.. autoclass:: telegram.Invoice
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.KeyboardButton
|
||||
=======================
|
||||
|
||||
.. autoclass:: telegram.KeyboardButton
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.LabeledPrice
|
||||
=====================
|
||||
|
||||
.. autoclass:: telegram.LabeledPrice
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.Location
|
||||
=================
|
||||
telegram.location module
|
||||
========================
|
||||
|
||||
.. autoclass:: telegram.Location
|
||||
.. automodule:: telegram.location
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.MaskPosition
|
||||
=====================
|
||||
|
||||
.. autoclass:: telegram.MaskPosition
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +1,7 @@
|
||||
telegram.Message
|
||||
================
|
||||
telegram.message module
|
||||
=======================
|
||||
|
||||
.. autoclass:: telegram.Message
|
||||
.. automodule:: telegram.message
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.MessageEntity
|
||||
======================
|
||||
|
||||
.. autoclass:: telegram.MessageEntity
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -0,0 +1,7 @@
|
||||
telegram.nullhandler module
|
||||
===========================
|
||||
|
||||
.. automodule:: telegram.nullhandler
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.OrderInfo
|
||||
==================
|
||||
|
||||
.. autoclass:: telegram.OrderInfo
|
||||
:members:
|
||||
:show-inheritance:
|
||||
@@ -1,6 +0,0 @@
|
||||
telegram.ParseMode
|
||||
==================
|
||||
|
||||
.. autoclass:: telegram.ParseMode
|
||||
:members:
|
||||
:show-inheritance:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user