GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-telegram-bot-raw (#2324) · MSutt/python-telegram-bot@25506f1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • pull_request_template.md
    • workflows
      • readme_notifier.yml
  • MANIFEST.in
  • README.rst
  • README_RAW.rst
  • docs/source
    • telegram.ext.rst
    • telegram.ext.utils.promise.rst
    • telegram.utils.promise.rst
  • requirements.txt
  • setup-raw.py
  • setup.cfg
  • setup.py
  • telegram
    • bot.py
    • ext
      • conversationhandler.py
      • dispatcher.py
      • handler.py
      • messagequeue.py
      • updater.py
      • utils
        • __init__.py
        • promise.py
        • webhookhandler.py
    • utils
      • helpers.py
      • promise.py
      • webhookhandler.py
  • tests
    • conftest.py
    • test_helpers.py
    • test_meta.py
    • test_promise.py
    • test_updater.py
    • test_utils.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/pull_request_template.md‎

Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Hey! You're PRing? Cool! Please have a look at the below checklist. It's here to
2727
- [ ] Added new handlers for new update types
2828
- [ ] Added new filters for new message (sub)types
2929
- [ ] Added or updated documentation for the changed class(es) and/or method(s)
30+
- [ ] Updated the Bot API version number in all places in `README.rst` and `README_RAW.rst`, including the badge
Collapse file

‎.github/workflows/readme_notifier.yml‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Warning maintainers
2+
on:
3+
pull_request:
4+
paths:
5+
- README.rst
6+
- README_RAW.rst
7+
jobs:
8+
job:
9+
runs-on: ubuntu-latest
10+
name: about readme change
11+
steps:
12+
- name: running the check
13+
uses: Poolitzer/notifier-action@master
14+
with:
15+
notify-message: Hey! Looks like you edited README.rst or README_RAW.rst. I'm just a friendly reminder to apply relevant changes to both of those files :)
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
Collapse file

‎MANIFEST.in‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include LICENSE LICENSE.lesser Makefile requirements.txt py.typed
1+
include LICENSE LICENSE.lesser Makefile requirements.txt README_RAW.rst telegram/py.typed
Collapse file

‎README.rst‎

Copy file name to clipboardExpand all lines: README.rst
+17-3Lines changed: 17 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
..
2+
Make user to apply any changes to this file to README_RAW.rst as well!
3+
14
.. image:: https://github.com/python-telegram-bot/logos/blob/master/logo-text/png/ptb-logo-text_768.png?raw=true
25
:align: center
36
:target: https://python-telegram-bot.org
@@ -17,6 +20,10 @@ We have a vibrant community of developers helping each other in our `Telegram gr
1720
:target: https://pypi.org/project/python-telegram-bot/
1821
:alt: Supported Python versions
1922

23+
.. image:: https://img.shields.io/badge/Bot%20API-5.0-blue?logo=telegram
24+
:target: https://core.telegram.org/bots/api-changelog
25+
:alt: Supported Bot API versions
26+
2027
.. image:: https://img.shields.io/pypi/dm/python-telegram-bot
2128
:target: https://pypistats.org/packages/python-telegram-bot
2229
:alt: PyPi Package Monthly Download
@@ -36,7 +43,7 @@ We have a vibrant community of developers helping each other in our `Telegram gr
3643
.. image:: https://codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg
3744
:target: https://codecov.io/gh/python-telegram-bot/python-telegram-bot
3845
:alt: Code coverage
39-
46+
4047
.. image:: http://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg
4148
:target: http://isitmaintained.com/project/python-telegram-bot/python-telegram-bot
4249
:alt: Median time to resolve an issue
@@ -48,7 +55,7 @@ We have a vibrant community of developers helping each other in our `Telegram gr
4855
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
4956
:target: https://github.com/psf/black
5057

51-
.. image:: https://img.shields.io/badge/Telegram-Group-blue.svg
58+
.. image:: https://img.shields.io/badge/Telegram-Group-blue.svg?logo=telegram
5259
:target: https://telegram.me/pythontelegrambotgroup
5360
:alt: Telegram Group
5461

@@ -92,6 +99,14 @@ In addition to the pure API implementation, this library features a number of hi
9299
make the development of bots easy and straightforward. These classes are contained in the
93100
``telegram.ext`` submodule.
94101

102+
A pure API implementation *without* ``telegram.ext`` is available as the standalone package ``python-telegram-bot-raw``. `See here for details. <https://github.com/python-telegram-bot/python-telegram-bot/blob/master/README_RAW.rst>`_
103+
104+
----
105+
Note
106+
----
107+
108+
Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conjunction will result in undesired side-effects, so only install *one* of both.
109+
95110
====================
96111
Telegram API support
97112
====================
@@ -199,7 +214,6 @@ You can get help in several ways:
199214
5. You can even ask for help on Stack Overflow using the `python-telegram-bot tag <https://stackoverflow.com/questions/tagged/python-telegram-bot>`_.
200215

201216

202-
203217
============
204218
Contributing
205219
============
Collapse file

‎README_RAW.rst‎

Copy file name to clipboard
+210Lines changed: 210 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
..
2+
Make user to apply any changes to this file to README.rst as well!
3+
4+
.. image:: https://github.com/python-telegram-bot/logos/blob/master/logo-text/png/ptb-raw-logo-text_768.png?raw=true
5+
:align: center
6+
:target: https://python-telegram-bot.org
7+
:alt: python-telegram-bot-raw Logo
8+
9+
We have made you a wrapper you can't refuse
10+
11+
We have a vibrant community of developers helping each other in our `Telegram group <https://telegram.me/pythontelegrambotgroup>`_. Join us!
12+
13+
*Stay tuned for library updates and new releases on our* `Telegram Channel <https://telegram.me/pythontelegrambotchannel>`_.
14+
15+
.. image:: https://img.shields.io/pypi/v/python-telegram-bot-raw.svg
16+
:target: https://pypi.org/project/python-telegram-bot/
17+
:alt: PyPi Package Version
18+
19+
.. image:: https://img.shields.io/pypi/pyversions/python-telegram-bot-raw.svg
20+
:target: https://pypi.org/project/python-telegram-bot/
21+
:alt: Supported Python versions
22+
23+
.. image:: https://img.shields.io/badge/Bot%20API-5.0-blue?logo=telegram
24+
:target: https://core.telegram.org/bots/api-changelog
25+
:alt: Supported Bot API versions
26+
27+
.. image:: https://img.shields.io/pypi/dm/python-telegram-bot-raw
28+
:target: https://pypistats.org/packages/python-telegram-bot
29+
:alt: PyPi Package Monthly Download
30+
31+
.. image:: https://img.shields.io/badge/docs-latest-af1a97.svg
32+
:target: https://python-telegram-bot.readthedocs.io/
33+
:alt: Documentation Status
34+
35+
.. image:: https://img.shields.io/pypi/l/python-telegram-bot-raw.svg
36+
:target: https://www.gnu.org/licenses/lgpl-3.0.html
37+
:alt: LGPLv3 License
38+
39+
.. image:: https://github.com/python-telegram-bot/python-telegram-bot/workflows/GitHub%20Actions/badge.svg
40+
:target: https://github.com/python-telegram-bot/python-telegram-bot/
41+
:alt: Github Actions workflow
42+
43+
.. image:: https://codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg
44+
:target: https://codecov.io/gh/python-telegram-bot/python-telegram-bot
45+
:alt: Code coverage
46+
47+
.. image:: http://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg
48+
:target: http://isitmaintained.com/project/python-telegram-bot/python-telegram-bot
49+
:alt: Median time to resolve an issue
50+
51+
.. image:: https://api.codacy.com/project/badge/Grade/99d901eaa09b44b4819aec05c330c968
52+
:target: https://www.codacy.com/app/python-telegram-bot/python-telegram-bot?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=python-telegram-bot/python-telegram-bot&amp;utm_campaign=Badge_Grade
53+
:alt: Code quality
54+
55+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
56+
:target: https://github.com/psf/black
57+
58+
.. image:: https://img.shields.io/badge/Telegram-Group-blue.svg?logo=telegram
59+
:target: https://telegram.me/pythontelegrambotgroup
60+
:alt: Telegram Group
61+
62+
.. image:: https://img.shields.io/badge/IRC-Channel-blue.svg
63+
:target: https://webchat.freenode.net/?channels=##python-telegram-bot
64+
:alt: IRC Bridge
65+
66+
=================
67+
Table of contents
68+
=================
69+
70+
- `Introduction`_
71+
72+
- `Telegram API support`_
73+
74+
- `Installing`_
75+
76+
- `Getting started`_
77+
78+
#. `Logging`_
79+
80+
#. `Documentation`_
81+
82+
- `Getting help`_
83+
84+
- `Contributing`_
85+
86+
- `License`_
87+
88+
============
89+
Introduction
90+
============
91+
92+
This library provides a pure Python, lightweight interface for the
93+
`Telegram Bot API <https://core.telegram.org/bots/api>`_.
94+
It's compatible with Python versions 3.6+. PTB-Raw might also work on `PyPy <http://pypy.org/>`_, though there have been a lot of issues before. Hence, PyPy is not officially supported.
95+
96+
``python-telegram-bot-raw`` is part of the `python-telegram-bot <https://python-telegram-bot.org>`_ ecosystem and provides the pure API functionality extracted from PTB. It therefore does *not* have independent release schedules, changelogs or documentation. Please consult the PTB resources.
97+
98+
----
99+
Note
100+
----
101+
102+
Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conjunction will result in undesired side-effects, so only install *one* of both.
103+
104+
====================
105+
Telegram API support
106+
====================
107+
108+
All types and methods of the Telegram Bot API **5.0** are supported.
109+
110+
==========
111+
Installing
112+
==========
113+
114+
You can install or upgrade python-telegram-bot-raw with:
115+
116+
.. code:: shell
117+
118+
$ pip install python-telegram-bot-raw --upgrade
119+
120+
Or you can install from source with:
121+
122+
.. code:: shell
123+
124+
$ git clone https://github.com/python-telegram-bot/python-telegram-bot --recursive
125+
$ cd python-telegram-bot
126+
$ python setup-raw.py install
127+
128+
In case you have a previously cloned local repository already, you should initialize the added urllib3 submodule before installing with:
129+
130+
.. code:: shell
131+
132+
$ git submodule update --init --recursive
133+
134+
----
135+
Note
136+
----
137+
138+
Installing the `.tar.gz` archive available on PyPi directly via `pip` will *not* work as expected, as `pip` does not recognize that it should use `setup-raw.py` instead of `setup.py`.
139+
140+
===============
141+
Getting started
142+
===============
143+
144+
Our Wiki contains an `Introduction to the API <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Introduction-to-the-API>`_. Other references are:
145+
146+
- the `Telegram API documentation <https://core.telegram.org/bots/api>`_
147+
- the `python-telegram-bot documentation <https://python-telegram-bot.readthedocs.io/>`_
148+
149+
-------
150+
Logging
151+
-------
152+
153+
This library uses the ``logging`` module. To set up logging to standard output, put:
154+
155+
.. code:: python
156+
157+
import logging
158+
logging.basicConfig(level=logging.DEBUG,
159+
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
160+
161+
at the beginning of your script.
162+
163+
You can also use logs in your application by calling ``logging.getLogger()`` and setting the log level you want:
164+
165+
.. code:: python
166+
167+
logger = logging.getLogger()
168+
logger.setLevel(logging.INFO)
169+
170+
If you want DEBUG logs instead:
171+
172+
.. code:: python
173+
174+
logger.setLevel(logging.DEBUG)
175+
176+
177+
=============
178+
Documentation
179+
=============
180+
181+
``python-telegram-bot``'s documentation lives at `readthedocs.io <https://python-telegram-bot.readthedocs.io/>`_, which
182+
includes the relevant documentation for ``python-telegram-bot-raw``.
183+
184+
============
185+
Getting help
186+
============
187+
188+
You can get help in several ways:
189+
190+
1. We have a vibrant community of developers helping each other in our `Telegram group <https://telegram.me/pythontelegrambotgroup>`_. Join us!
191+
192+
2. In case you are unable to join our group due to Telegram restrictions, you can use our `IRC channel <https://webchat.freenode.net/?channels=##python-telegram-bot>`_.
193+
194+
3. Report bugs, request new features or ask questions by `creating an issue <https://github.com/python-telegram-bot/python-telegram-bot/issues/new/choose>`_ or `a discussion <https://github.com/python-telegram-bot/python-telegram-bot/discussions/new>`_.
195+
196+
4. Our `Wiki pages <https://github.com/python-telegram-bot/python-telegram-bot/wiki/>`_ offer a growing amount of resources.
197+
198+
5. You can even ask for help on Stack Overflow using the `python-telegram-bot tag <https://stackoverflow.com/questions/tagged/python-telegram-bot>`_.
199+
200+
============
201+
Contributing
202+
============
203+
204+
Contributions of all sizes are welcome. Please review our `contribution guidelines <https://github.com/python-telegram-bot/python-telegram-bot/blob/master/.github/CONTRIBUTING.rst>`_ to get started. You can also help by `reporting bugs <https://github.com/python-telegram-bot/python-telegram-bot/issues/new>`_.
205+
206+
=======
207+
License
208+
=======
209+
210+
You may copy, distribute and modify the software provided that modifications are described and licensed for free under `LGPL-3 <https://www.gnu.org/licenses/lgpl-3.0.html>`_. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.
Collapse file

‎docs/source/telegram.ext.rst‎

Copy file name to clipboardExpand all lines: docs/source/telegram.ext.rst
+12-5Lines changed: 12 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ telegram.ext package
66
telegram.ext.updater
77
telegram.ext.dispatcher
88
telegram.ext.dispatcherhandlerstop
9-
telegram.ext.filters
9+
telegram.ext.callbackcontext
10+
telegram.ext.defaults
1011
telegram.ext.job
1112
telegram.ext.jobqueue
1213
telegram.ext.messagequeue
1314
telegram.ext.delayqueue
14-
telegram.ext.callbackcontext
15-
telegram.ext.defaults
1615

1716
Handlers
1817
--------
@@ -22,10 +21,11 @@ Handlers
2221
telegram.ext.handler
2322
telegram.ext.callbackqueryhandler
2423
telegram.ext.choseninlineresulthandler
25-
telegram.ext.conversationhandler
2624
telegram.ext.commandhandler
25+
telegram.ext.conversationhandler
2726
telegram.ext.inlinequeryhandler
2827
telegram.ext.messagehandler
28+
telegram.ext.filters
2929
telegram.ext.pollanswerhandler
3030
telegram.ext.pollhandler
3131
telegram.ext.precheckoutqueryhandler
@@ -43,4 +43,11 @@ Persistence
4343

4444
telegram.ext.basepersistence
4545
telegram.ext.picklepersistence
46-
telegram.ext.dictpersistence
46+
telegram.ext.dictpersistence
47+
48+
utils
49+
-----
50+
51+
.. toctree::
52+
53+
telegram.ext.utils.promise
Collapse file

‎docs/source/telegram.ext.utils.promise.rst‎

Copy file name to clipboard
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
telegram.ext.utils.promise.Promise
2+
==================================
3+
4+
.. autoclass:: telegram.ext.utils.promise.Promise
5+
:members:
6+
:show-inheritance:
Collapse file

‎docs/source/telegram.utils.promise.rst‎

Copy file name to clipboard
+6-3Lines changed: 6 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
telegram.utils.promise.Promise
22
==============================
33

4-
.. autoclass:: telegram.utils.promise.Promise
5-
:members:
6-
:show-inheritance:
4+
.. py:class:: telegram.utils.promise.Promise
5+
6+
Shortcut for :class:`telegram.ext.utils.promise.Promise`.
7+
8+
.. deprecated:: 13.2
9+
Use :class:`telegram.ext.utils.promise.Promise` instead.
Collapse file

‎requirements.txt‎

Copy file name to clipboard
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
certifi
2-
tornado>=5.1
32
cryptography
4-
decorator>=4.4.0
3+
# only telegram.ext: # Keep this line here; used in setup(-raw).py
4+
tornado>=5.1
55
APScheduler==3.6.3
66
pytz>=2018.6
Collapse file

‎setup-raw.py‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
"""The setup and build script for the python-telegram-bot-raw library."""
3+
4+
from setuptools import setup
5+
from setup import get_setup_kwargs
6+
7+
setup(**get_setup_kwargs(raw=True))

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.