Compare commits

..

2 Commits

Author SHA1 Message Date
Jannes Höke da4ed9b316 🚑 Bump version to v5.3.1
#579
2017-04-25 16:54:05 +02:00
Jannes Höke a5660234e5 🚑 enforce urllib3==1.20
#579
2017-04-25 16:50:11 +02:00
373 changed files with 11442 additions and 20544 deletions
+3 -18
View File
@@ -1,20 +1,5 @@
languages:
Python: true
exclude_paths:
- "telegram/emoji.py"
- "tests/*"
- "examples/*"
engines:
duplication:
enabled: true
config:
languages:
- python:
checks:
Similar code:
enabled: false
radon:
enabled: true
config:
threshold: "C"
ratings:
paths:
- "**.py"
+5
View File
@@ -0,0 +1,5 @@
[run]
source = telegram
[report]
omit = tests/
+20 -41
View File
@@ -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):
def __init__(self, id, name, last_name='', **kwargs):
self.last_name = last_name
# BAD
def __init__(self, id, name, last_name=None):
def __init__(self, id, name, last_name=''):
self.last_name = last_name
-5
View File
@@ -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
-2
View File
@@ -65,11 +65,9 @@ target/
# unitests files
telegram.mp3
telegram.mp4
telegram2.mp4
telegram.ogg
telegram.png
telegram.webp
telegram.jpg
# original files from merges
*.orig
-4
View File
@@ -1,4 +0,0 @@
[submodule "telegram/vendor/urllib3"]
path = telegram/vendor/ptb_urllib3
url = https://github.com/python-telegram-bot/urllib3.git
branch = ptb
+4 -6
View File
@@ -1,20 +1,18 @@
- repo: git://github.com/python-telegram-bot/mirrors-yapf
sha: master
sha: v0.12.2
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
-9
View File
@@ -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
+9 -26
View File
@@ -1,38 +1,21 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy-5.7.1"
- "pypy3.5-5.8.0"
dist: trusty
sudo: false
- "pypy"
- "pypy3"
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
install:
- pip install -U codecov 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 -m nocoverage
- pytest -v -m "not nocoverage" --cov
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
after_success:
- coverage combine
- codecov -F Travis
coveralls
+2 -27
View File
@@ -1,63 +1,38 @@
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>`_
- `jlmadurga <https://github.com/jlmadurga>`_
- `Kjwon15 <https://github.com/kjwon15>`_
- `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>`_
- `Simon Schürrle <https://github.com/SitiSchu>`_
- `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>`_
-166
View File
@@ -1,171 +1,6 @@
=======
Changes
=======
**2017-12-08**
*Released 9.0.0*
Breaking changes (possibly)
- Drop support for python 3.3 (PR `#930`_)
New Features
- Support Bot API 3.5 (PR `#920`_)
Changes
- Fix race condition in dispatcher start/stop (`#887`_)
- Log error trace if there is no error handler registered (`#694`_)
- Update examples with consistent string formatting (`#870`_)
- Various changes and improvements to the docs.
.. _`#920`: https://github.com/python-telegram-bot/python-telegram-bot/pull/920
.. _`#930`: https://github.com/python-telegram-bot/python-telegram-bot/pull/930
.. _`#887`: https://github.com/python-telegram-bot/python-telegram-bot/pull/887
.. _`#694`: https://github.com/python-telegram-bot/python-telegram-bot/pull/694
.. _`#870`: https://github.com/python-telegram-bot/python-telegram-bot/pull/870
**2017-10-15**
*Released 8.1.1*
- Fix Commandhandler crashing on single character messages (PR `#873`_).
.. _`#873`: https://github.com/python-telegram-bot/python-telegram-bot/pull/871
**2017-10-14**
*Released 8.1.0*
New features
- Support Bot API 3.4 (PR `#865`_).
Changes
- MessageHandler & RegexHandler now consider channel_updates.
- Fix command not recognized if it is directly followed by a newline (PR `#869`_).
- Removed Bot._message_wrapper (PR `#822`_).
- Unitests are now also running on AppVeyor (Windows VM).
- Various unitest improvements.
- Documentation fixes.
.. _`#822`: https://github.com/python-telegram-bot/python-telegram-bot/pull/822
.. _`#865`: https://github.com/python-telegram-bot/python-telegram-bot/pull/865
.. _`#869`: https://github.com/python-telegram-bot/python-telegram-bot/pull/869
**2017-09-01**
*Released 8.0.0*
New features
- 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`_).
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`_).
- Lots 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**
@@ -217,7 +52,6 @@ Changes
- Rework ``JobQueue``
- Introduce ``ConversationHandler``
- Introduce ``telegram.constants`` - https://github.com/python-telegram-bot/python-telegram-bot/pull/342
**2016-07-12**
-46
View File
@@ -1,46 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at devs@python-telegram-bot.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
+4 -4
View File
@@ -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)"
+5 -23
View File
@@ -15,10 +15,6 @@ 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
@@ -31,17 +27,13 @@ We have made you a wrapper you can't refuse
:target: https://travis-ci.org/python-telegram-bot/python-telegram-bot
:alt: Travis CI Status
.. image:: https://img.shields.io/appveyor/ci/Eldinnie/python-telegram-bot/master.svg?logo=appveyor
:target: https://ci.appveyor.com/project/Eldinnie/python-telegram-bot
:alt: AppVeyor CI Status
.. image:: https://codeclimate.com/github/python-telegram-bot/python-telegram-bot/badges/gpa.svg
:target: https://codeclimate.com/github/python-telegram-bot/python-telegram-bot
:alt: Code Climate
.. image:: https://codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg
:target: https://codecov.io/gh/python-telegram-bot/python-telegram-bot
:alt: Code coverage
.. image:: https://coveralls.io/repos/python-telegram-bot/python-telegram-bot/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/python-telegram-bot/python-telegram-bot?branch=master
:alt: Coveralls
.. image:: http://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg
:target: http://isitmaintained.com/project/python-telegram-bot/python-telegram-bot
@@ -51,10 +43,6 @@ We have made you a wrapper you can't refuse
:target: https://telegram.me/pythontelegrambotgroup
:alt: Telegram Group
.. image:: https://img.shields.io/badge/IRC-Channel-blue.svg
:target: https://webchat.freenode.net/?channels=##python-telegram-bot
:alt: IRC Bridge
=================
Table of contents
=================
@@ -96,7 +84,7 @@ make the development of bots easy and straightforward. These classes are contain
Telegram API support
====================
All types and methods of the Telegram Bot API 3.4 are supported.
As of **3. Oct 2016**, all types and methods of the Telegram Bot API are supported.
==========
Installing
@@ -112,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
-39
View File
@@ -1,39 +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:\\Python34"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
branches:
only:
- master
skip_branch_with_pr: true
max_jobs: 1
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "git submodule update --init --recursive"
# Check that we have the expected version and architecture for Python
- "python --version"
# We need wheel installed to build wheels
- "pip install -U codecov pytest-cov"
- "pip install -U wheel"
- "pip install -r requirements.txt"
- "pip install -r requirements-dev.txt"
build: off
test_script:
- "pytest -m \"not nocoverage\" --cov --cov-report xml:coverage.xml"
after_test:
- "codecov -f coverage.xml -F Appveyor"
-4
View File
@@ -1,4 +0,0 @@
comment:
layout: "diff, files"
behavior: default
require_changes: false
+1 -1
View File
@@ -1,3 +1,3 @@
sphinx>=1.5.4
sphinx
sphinx_rtd_theme
sphinx-pypi-upload
View File
+6 -23
View File
@@ -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 = '9.0' # telegram.__version__[:3]
version = '5.3' # telegram.__version__[:3]
# The full version, including alpha/beta/rc tags.
release = '9.0.0' # telegram.__version__
release = '5.3.1' # telegram.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -135,7 +136,7 @@ html_logo = 'ptb-logo-orange.png'
# 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,
@@ -288,21 +289,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)
-7
View File
@@ -6,16 +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
Changelog
---------
.. include:: ..\\..\\CHANGES.rst
Indices and tables
==================
Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Animation
==================
telegram.animation module
=========================
.. autoclass:: telegram.Animation
.. automodule:: telegram.animation
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Audio
==============
telegram.audio module
=====================
.. autoclass:: telegram.Audio
.. automodule:: telegram.audio
:members:
:undoc-members:
:show-inheritance:
+7
View File
@@ -0,0 +1,7 @@
telegram.base module
====================
.. automodule:: telegram.base
:members:
:undoc-members:
:show-inheritance:
+4 -4
View File
@@ -1,6 +1,6 @@
telegram.Bot
============
telegram.bot module
===================
.. autoclass:: telegram.Bot
.. automodule:: telegram.bot
:members:
:show-inheritance:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Callbackgame
=====================
telegram.callbackgame module
============================
.. autoclass:: telegram.CallbackGame
.. automodule:: telegram.callbackgame
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.CallbackQuery
======================
telegram.callbackquery module
=============================
.. autoclass:: telegram.CallbackQuery
.. automodule:: telegram.callbackquery
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Chat
=============
telegram.chat module
=========================
.. autoclass:: telegram.Chat
.. automodule:: telegram.chat
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ChatAction
===================
telegram.chataction module
==========================
.. autoclass:: telegram.ChatAction
.. automodule:: telegram.chataction
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ChatMember
===================
telegram.chatmember module
==========================
.. autoclass:: telegram.ChatMember
.. automodule:: telegram.chatmember
:members:
:undoc-members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.ChatPhoto
==================
.. autoclass:: telegram.ChatPhoto
:members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ChosenInlineResult
===========================
telegram.choseninlineresult module
==================================
.. autoclass:: telegram.ChosenInlineResult
.. automodule:: telegram.choseninlineresult
:members:
:undoc-members:
:show-inheritance:
+2 -1
View File
@@ -1,6 +1,7 @@
telegram.constants Module
telegram.constants module
=========================
.. automodule:: telegram.constants
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Contact
================
telegram.contact module
=======================
.. autoclass:: telegram.Contact
.. automodule:: telegram.contact
:members:
:undoc-members:
:show-inheritance:
+7
View File
@@ -0,0 +1,7 @@
telegram.contrib.botan module
=============================
.. automodule:: telegram.contrib.botan
:members:
:undoc-members:
:show-inheritance:
+17
View File
@@ -0,0 +1,17 @@
telegram.contrib package
========================
Submodules
----------
.. toctree::
telegram.contrib.botan
Module contents
---------------
.. automodule:: telegram.contrib
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -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:
+4 -3
View File
@@ -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:
-7
View File
@@ -1,7 +0,0 @@
telegram.ext.DelayQueue
=======================
.. autoclass:: telegram.ext.DelayQueue
:members:
:show-inheritance:
:special-members:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ext.Dispatcher
=======================
telegram.ext.dispatcher module
==============================
.. autoclass:: telegram.ext.Dispatcher
.. automodule:: telegram.ext.dispatcher
:members:
:undoc-members:
:show-inheritance:
+2 -1
View File
@@ -1,6 +1,7 @@
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
====================
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:
-6
View File
@@ -1,6 +0,0 @@
telegram.ext.Job
=====================
.. autoclass:: telegram.ext.Job
:members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ext.JobQueue
=====================
telegram.ext.jobqueue module
============================
.. autoclass:: telegram.ext.JobQueue
.. automodule:: telegram.ext.jobqueue
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -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:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ext.RegexHandler
=========================
telegram.ext.regexhandler module
================================
.. autoclass:: telegram.ext.RegexHandler
.. automodule:: telegram.ext.regexhandler
:members:
:undoc-members:
:show-inheritance:
+12 -12
View File
@@ -1,21 +1,14 @@
telegram.ext package
====================
Submodules
----------
.. toctree::
telegram.ext.updater
telegram.ext.dispatcher
telegram.ext.filters
telegram.ext.job
telegram.ext.jobqueue
telegram.ext.messagequeue
telegram.ext.delayqueue
Handlers
--------
.. toctree::
telegram.ext.handler
telegram.ext.callbackqueryhandler
telegram.ext.choseninlineresulthandler
@@ -23,9 +16,16 @@ Handlers
telegram.ext.commandhandler
telegram.ext.inlinequeryhandler
telegram.ext.messagehandler
telegram.ext.precheckoutqueryhandler
telegram.ext.filters
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:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ext.TypeHandler
========================
telegram.ext.typehandler module
===============================
.. autoclass:: telegram.ext.TypeHandler
.. automodule:: telegram.ext.typehandler
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ext.Updater
====================
telegram.ext.updater module
===========================
.. autoclass:: telegram.ext.Updater
.. automodule:: telegram.ext.updater
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.File
=============
telegram.file module
====================
.. autoclass:: telegram.File
.. automodule:: telegram.file
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.ForceReply
===================
telegram.forcereply module
==========================
.. autoclass:: telegram.ForceReply
.. automodule:: telegram.forcereply
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Game
=============
telegram.game module
====================
.. autoclass:: telegram.Game
.. automodule:: telegram.game
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.GameHighScore
======================
telegram.gamehighscore module
=============================
.. autoclass:: telegram.GameHighScore
.. automodule:: telegram.gamehighscore
:members:
:undoc-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:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.InlineQuery
====================
telegram.inlinequery module
===========================
.. autoclass:: telegram.InlineQuery
.. automodule:: telegram.inlinequery
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -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 +1,7 @@
telegram.InlineQueryResultGame
==============================
telegram.inlinequeryresultgame module
=====================================
.. autoclass:: telegram.InlineQueryResultGame
.. automodule:: telegram.inlinequeryresultgame
:members:
:undoc-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 +1,7 @@
telegram.InputContactMessageContent
===================================
telegram.inputcontactmessagecontent module
==========================================
.. autoclass:: telegram.InputContactMessageContent
.. automodule:: telegram.inputcontactmessagecontent
:members:
:undoc-members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.InputFile
==================
telegram.inputfile module
=========================
.. autoclass:: telegram.InputFile
.. automodule:: telegram.inputfile
:members:
:undoc-members:
:show-inheritance:
@@ -1,6 +1,7 @@
telegram.InputLocationMessageContent
====================================
telegram.inputlocationmessagecontent module
===========================================
.. autoclass:: telegram.InputLocationMessageContent
.. automodule:: telegram.inputlocationmessagecontent
:members:
:undoc-members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.InputMedia
===================
.. autoclass:: telegram.InputMedia
:members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.InputMediaPhoto
========================
.. autoclass:: telegram.InputMediaPhoto
:members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.InputMediaVideo
========================
.. autoclass:: telegram.InputMediaVideo
:members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.InputMessageContent
============================
telegram.inputmessagecontent module
===================================
.. autoclass:: telegram.InputMessageContent
.. automodule:: telegram.inputmessagecontent
:members:
:undoc-members:
:show-inheritance:
@@ -1,6 +1,7 @@
telegram.InputTextMessageContent
================================
telegram.inputtextmessagecontent module
=======================================
.. autoclass:: telegram.InputTextMessageContent
.. automodule:: telegram.inputtextmessagecontent
:members:
:undoc-members:
:show-inheritance:
@@ -1,6 +1,7 @@
telegram.InputVenueMessageContent
=================================
telegram.inputvenuemessagecontent module
========================================
.. autoclass:: telegram.InputVenueMessageContent
.. automodule:: telegram.inputvenuemessagecontent
:members:
:undoc-members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.Invoice
================
.. autoclass:: telegram.Invoice
:members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.KeyboardButton
=======================
telegram.keyboardbutton module
==============================
.. autoclass:: telegram.KeyboardButton
.. automodule:: telegram.keyboardbutton
:members:
:undoc-members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.LabeledPrice
=====================
.. autoclass:: telegram.LabeledPrice
:members:
:show-inheritance:
+4 -3
View File
@@ -1,6 +1,7 @@
telegram.Location
=================
telegram.location module
========================
.. autoclass:: telegram.Location
.. automodule:: telegram.location
:members:
:undoc-members:
:show-inheritance:
-6
View File
@@ -1,6 +0,0 @@
telegram.MaskPosition
=====================
.. autoclass:: telegram.MaskPosition
:members:
:show-inheritance:

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