Showing preview only (3,884K chars total). Download the full file or copy to clipboard to get everything.
Repository: eternnoir/pyTelegramBotAPI
Branch: master
Commit: 23aee2beacaf
Files: 206
Total size: 3.7 MB
Directory structure:
gitextract_szq67bee/
├── .github/
│ ├── ISSUE_TEMPLATE
│ ├── PULL_REQUEST_TEMPLATE.md
│ └── workflows/
│ └── setup_python.yml
├── .gitignore
├── .readthedocs.yml
├── .travis.yml
├── LICENSE
├── README.md
├── doc_req.txt
├── docs/
│ ├── Makefile
│ └── source/
│ ├── async_version/
│ │ └── index.rst
│ ├── calldata.rst
│ ├── conf.py
│ ├── formatting.rst
│ ├── index.rst
│ ├── install.rst
│ ├── locales/
│ │ ├── en/
│ │ │ └── LC_MESSAGES/
│ │ │ ├── async_version.po
│ │ │ ├── calldata.po
│ │ │ ├── formatting.po
│ │ │ ├── index.po
│ │ │ ├── install.po
│ │ │ ├── quick_start.po
│ │ │ ├── sync_version.po
│ │ │ ├── types.po
│ │ │ └── util.po
│ │ └── ru/
│ │ └── LC_MESSAGES/
│ │ ├── async_version.po
│ │ ├── calldata.po
│ │ ├── formatting.po
│ │ ├── index.po
│ │ ├── install.po
│ │ ├── quick_start.po
│ │ ├── sync_version.po
│ │ ├── types.po
│ │ └── util.po
│ ├── quick_start.rst
│ ├── sync_version/
│ │ └── index.rst
│ ├── types.rst
│ └── util.rst
├── examples/
│ ├── anonymous_bot.py
│ ├── asynchronous_telebot/
│ │ ├── callback_data_examples/
│ │ │ ├── advanced_calendar_example/
│ │ │ │ ├── filters.py
│ │ │ │ ├── keyboards.py
│ │ │ │ └── main.py
│ │ │ └── simple_products_example.py
│ │ ├── chat_join_request.py
│ │ ├── chat_member_example.py
│ │ ├── continue_handling.py
│ │ ├── custom_filters/
│ │ │ ├── admin_filter_example.py
│ │ │ ├── advanced_text_filter.py
│ │ │ ├── general_custom_filters.py
│ │ │ ├── id_filter_example.py
│ │ │ ├── is_filter_example.py
│ │ │ └── text_filter_example.py
│ │ ├── custom_states.py
│ │ ├── detect_changes.py
│ │ ├── download_file_example.py
│ │ ├── echo_bot.py
│ │ ├── exception_handler.py
│ │ ├── formatting_example.py
│ │ ├── message_reaction_example.py
│ │ ├── middleware/
│ │ │ ├── flooding_middleware.py
│ │ │ ├── i18n.py
│ │ │ └── i18n_middleware_example/
│ │ │ ├── i18n_base_midddleware.py
│ │ │ ├── keyboards.py
│ │ │ ├── locales/
│ │ │ │ ├── en/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ ├── ru/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ └── uz_Latn/
│ │ │ │ └── LC_MESSAGES/
│ │ │ │ └── messages.po
│ │ │ └── main.py
│ │ ├── mini_app.py
│ │ ├── multibot/
│ │ │ ├── README.MD
│ │ │ ├── config.py
│ │ │ ├── handlers.py
│ │ │ ├── main.py
│ │ │ └── nginx_conf.conf
│ │ ├── register_handler.py
│ │ ├── send_file_example.py
│ │ ├── send_message_draft_example.py
│ │ ├── set_command_example.py
│ │ ├── skip_updates_example.py
│ │ ├── timer_bot_async.py
│ │ ├── update_listener.py
│ │ └── webhooks/
│ │ ├── async_webhook_aiohttp_echo_bot.py
│ │ ├── run_webhooks.py
│ │ └── webhook_starlette_echo_bot.py
│ ├── callback_data_examples/
│ │ ├── advanced_calendar_example/
│ │ │ ├── filters.py
│ │ │ ├── keyboards.py
│ │ │ └── main.py
│ │ └── simple_products_example.py
│ ├── chat_join_request.py
│ ├── chat_member_example.py
│ ├── continue_handling.py
│ ├── create_invite_link.py
│ ├── custom_filters/
│ │ ├── admin_filter_example.py
│ │ ├── advanced_text_filter.py
│ │ ├── general_custom_filters.py
│ │ ├── id_filter_example.py
│ │ ├── is_filter_example.py
│ │ └── text_filter_example.py
│ ├── custom_states.py
│ ├── deep_linking.py
│ ├── detailed_example/
│ │ └── detailed_example.py
│ ├── detect_changes.py
│ ├── download_file_example.py
│ ├── echo_bot.py
│ ├── formatting_example.py
│ ├── inline_example.py
│ ├── inline_keyboard_example.py
│ ├── message_reaction_example.py
│ ├── middleware/
│ │ ├── README.md
│ │ ├── class_based/
│ │ │ ├── antiflood_middleware.py
│ │ │ ├── basic_example.py
│ │ │ └── i18n_middleware/
│ │ │ ├── i18n_base_middleware.py
│ │ │ ├── keyboards.py
│ │ │ ├── locales/
│ │ │ │ ├── en/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ ├── ru/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ └── uz_Latn/
│ │ │ │ └── LC_MESSAGES/
│ │ │ │ └── messages.po
│ │ │ └── main.py
│ │ └── function_based/
│ │ ├── i18n.py
│ │ ├── i18n_gettext/
│ │ │ ├── i18n_class.py
│ │ │ ├── keyboards.py
│ │ │ ├── locales/
│ │ │ │ ├── en/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ ├── ru/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ └── uz_Latn/
│ │ │ │ └── LC_MESSAGES/
│ │ │ │ └── messages.po
│ │ │ └── main.py
│ │ └── session.py
│ ├── mini_app.py
│ ├── mini_app_web/
│ │ ├── index.html
│ │ ├── script.js
│ │ └── style.css
│ ├── multibot/
│ │ ├── README.MD
│ │ ├── config.py
│ │ ├── handlers.py
│ │ ├── main.py
│ │ └── nginx_conf.conf
│ ├── payments_example.py
│ ├── poll_example.py
│ ├── register_handler.py
│ ├── reply_keyboard_markup_example.py
│ ├── send_message_draft_example.py
│ ├── serverless/
│ │ ├── aws_lambda_function.py
│ │ ├── azure_functions
│ │ └── flask_google_cloud_bot/
│ │ ├── .gcloudignore
│ │ ├── app.yaml
│ │ ├── main.py
│ │ └── requirements.txt
│ ├── set_command_example.py
│ ├── skip_updates_example.py
│ ├── stars_payment.py
│ ├── step_example.py
│ ├── telebot_bot/
│ │ └── telebot_bot.py
│ ├── timer_bot.py
│ └── webhook_examples/
│ ├── README.md
│ ├── run_webhooks.py
│ ├── webhook_aiohttp_echo_bot.py
│ ├── webhook_cherrypy_echo_bot.py
│ ├── webhook_cpython_echo_bot.py
│ ├── webhook_fastapi_echo_bot.py
│ ├── webhook_flask_echo_bot.py
│ ├── webhook_flask_heroku_echo.py
│ ├── webhook_tornado_echo_bot.py
│ └── webhook_twisted_echo_bot.py
├── pyproject.toml
├── requirements.txt
├── telebot/
│ ├── __init__.py
│ ├── apihelper.py
│ ├── async_telebot.py
│ ├── asyncio_filters.py
│ ├── asyncio_handler_backends.py
│ ├── asyncio_helper.py
│ ├── asyncio_storage/
│ │ ├── __init__.py
│ │ ├── base_storage.py
│ │ ├── memory_storage.py
│ │ ├── pickle_storage.py
│ │ └── redis_storage.py
│ ├── callback_data.py
│ ├── custom_filters.py
│ ├── ext/
│ │ ├── __init__.py
│ │ ├── aio/
│ │ │ ├── __init__.py
│ │ │ └── webhooks.py
│ │ ├── reloader.py
│ │ └── sync/
│ │ ├── __init__.py
│ │ └── webhooks.py
│ ├── formatting.py
│ ├── handler_backends.py
│ ├── py.typed
│ ├── service_utils.py
│ ├── states/
│ │ ├── __init__.py
│ │ ├── asyncio/
│ │ │ ├── __init__.py
│ │ │ ├── context.py
│ │ │ └── middleware.py
│ │ └── sync/
│ │ ├── __init__.py
│ │ ├── context.py
│ │ └── middleware.py
│ ├── storage/
│ │ ├── __init__.py
│ │ ├── base_storage.py
│ │ ├── memory_storage.py
│ │ ├── pickle_storage.py
│ │ └── redis_storage.py
│ ├── types.py
│ ├── util.py
│ └── version.py
└── tests/
├── __init__.py
├── test_apihelper_95.py
├── test_data/
│ └── record.ogg
├── test_handler_backends.py
├── test_telebot.py
└── test_types.py
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE
================================================
Please answer these questions before submitting your issue. Thanks!
1. What version of pyTelegramBotAPI are you using?
2. What OS are you using?
3. What version of python are you using?
================================================
FILE: .github/PULL_REQUEST_TEMPLATE.md
================================================
## Description
Include changes, new features and etc:
## Describe your tests
How did you test your change?
Python version:
OS:
## Checklist:
- [ ] I added/edited example on new feature/change (if exists)
- [ ] My changes won't break backward compatibility
- [ ] I made changes both for sync and async
================================================
FILE: .github/workflows/setup_python.yml
================================================
# This is a basic workflow to help you get started with Actions
name: Setup
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
all-setups:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.11']
name: ${{ matrix.python-version }} and tests
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: |
pip3 install -r requirements.txt
pip3 install .
cd tests && py.test
================================================
FILE: .gitignore
================================================
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
.idea/
venv/
.venv/
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
testMain.py
#VS Code
.vscode/
.DS_Store
*.code-workspace
# documentation
_build/
================================================
FILE: .readthedocs.yml
================================================
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true
formats: all
# Optionally set the version of Python and requirements required to build your docs
python:
install:
- requirements: doc_req.txt
================================================
FILE: .travis.yml
================================================
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy3"
install: "pip install -r requirements.txt"
script:
- python setup.py install
- cd tests && py.test
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{description}
Copyright (C) {year} {fullname}
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
================================================
FILE: README.md
================================================
[](https://pypi.python.org/pypi/pyTelegramBotAPI)
[](https://pypi.python.org/pypi/pyTelegramBotAPI)
[](https://pytba.readthedocs.io/en/latest/?badge=latest)
[](https://pypi.org/project/pyTelegramBotAPI/)
[](https://pypi.python.org/pypi/pytelegrambotapi)
# <p align="center">pyTelegramBotAPI
<p align="center">A simple, but extensible Python implementation for the <a href="https://core.telegram.org/bots/api">Telegram Bot API</a>.</p>
<p align="center">Both synchronous and asynchronous.</p>
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#march-1-2026"><img src="https://img.shields.io/badge/Bot%20API-9.5-blue?logo=telegram" alt="Supported Bot API version"></a>
<h2><a href='https://pytba.readthedocs.io/en/latest/index.html'>Official documentation</a></h2>
<h2><a href='https://pytba.readthedocs.io/ru/latest/index.html'>Official ru documentation</a></h2>
## Contents
* [Getting started](#getting-started)
* [Writing your first bot](#writing-your-first-bot)
* [Prerequisites](#prerequisites)
* [A simple echo bot](#a-simple-echo-bot)
* [General API Documentation](#general-api-documentation)
* [Types](#types)
* [Methods](#methods)
* [General use of the API](#general-use-of-the-api)
* [Message handlers](#message-handlers)
* [Edited Message handler](#edited-message-handler)
* [Channel Post handler](#channel-post-handler)
* [Edited Channel Post handler](#edited-channel-post-handler)
* [Callback Query handlers](#callback-query-handler)
* [Shipping Query Handler](#shipping-query-handler)
* [Pre Checkout Query Handler](#pre-checkout-query-handler)
* [Poll Handler](#poll-handler)
* [Poll Answer Handler](#poll-answer-handler)
* [My Chat Member Handler](#my-chat-member-handler)
* [Chat Member Handler](#chat-member-handler)
* [Chat Join request handler](#chat-join-request-handler)
* [Inline Mode](#inline-mode)
* [Inline handler](#inline-handler)
* [Chosen Inline handler](#chosen-inline-handler)
* [Answer Inline Query](#answer-inline-query)
* [Additional API features](#additional-api-features)
* [Middleware handlers](#middleware-handlers)
* [Custom filters](#custom-filters)
* [TeleBot](#telebot)
* [Reply markup](#reply-markup)
* [Advanced use of the API](#advanced-use-of-the-api)
* [Using local Bot API Server](#using-local-bot-api-sever)
* [Asynchronous TeleBot](#asynchronous-telebot)
* [Sending large text messages](#sending-large-text-messages)
* [Controlling the amount of Threads used by TeleBot](#controlling-the-amount-of-threads-used-by-telebot)
* [The listener mechanism](#the-listener-mechanism)
* [Using web hooks](#using-web-hooks)
* [Logging](#logging)
* [Proxy](#proxy)
* [Testing](#testing)
* [API conformance limitations](#api-conformance-limitations)
* [AsyncTeleBot](#asynctelebot)
* [F.A.Q.](#faq)
* [How can I distinguish a User and a GroupChat in message.chat?](#how-can-i-distinguish-a-user-and-a-groupchat-in-messagechat)
* [How can I handle reocurring ConnectionResetErrors?](#how-can-i-handle-reocurring-connectionreseterrors)
* [The Telegram Chat Group](#the-telegram-chat-group)
* [Telegram Channel](#telegram-channel)
* [More examples](#more-examples)
* [Code Template](#code-template)
* [Bots using this library](#bots-using-this-library)
## Getting started
This API is tested with Python 3.9-3.13 and Pypy 3.
There are two ways to install the library:
* Installation using pip (a Python package manager):
```
$ pip install pyTelegramBotAPI
```
* Installation from source (requires git):
```
$ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git
```
It is generally recommended to use the first option.
*While the API is production-ready, it is still under development and it has regular updates, do not forget to update it regularly by calling*
```
pip install pytelegrambotapi --upgrade
```
## Writing your first bot
### Prerequisites
It is presumed that you [have obtained an API token with @BotFather](https://core.telegram.org/bots#botfather). We will call this token `TOKEN`.
Furthermore, you have basic knowledge of the Python programming language and more importantly [the Telegram Bot API](https://core.telegram.org/bots/api).
### A simple echo bot
The TeleBot class (defined in \__init__.py) encapsulates all API calls in a single class. It provides functions such as `send_xyz` (`send_message`, `send_document` etc.) and several ways to listen for incoming messages.
Create a file called `echo_bot.py`.
Then, open the file and create an instance of the TeleBot class.
```python
import telebot
bot = telebot.TeleBot("TOKEN", parse_mode=None) # You can set parse_mode by default. HTML or MARKDOWN
```
*Note: Make sure to actually replace TOKEN with your own API token.*
After that declaration, we need to register some so-called message handlers. Message handlers define filters which a message must pass. If a message passes the filter, the decorated function is called and the incoming message is passed as an argument.
Let's define a message handler which handles incoming `/start` and `/help` commands.
```python
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
```
A function which is decorated by a message handler __can have an arbitrary name, however, it must have only one parameter (the message)__.
Let's add another handler:
```python
@bot.message_handler(func=lambda m: True)
def echo_all(message):
bot.reply_to(message, message.text)
```
This one echoes all incoming text messages back to the sender. It uses a lambda function to test a message. If the lambda returns True, the message is handled by the decorated function. Since we want all messages to be handled by this function, we simply always return True.
*Note: all handlers are tested in the order in which they were declared*
We now have a basic bot which replies a static message to "/start" and "/help" commands and which echoes the rest of the sent messages. To start the bot, add the following to our source file:
```python
bot.infinity_polling()
```
Alright, that's it! Our source file now looks like this:
```python
import telebot
bot = telebot.TeleBot("YOUR_BOT_TOKEN")
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
@bot.message_handler(func=lambda message: True)
def echo_all(message):
bot.reply_to(message, message.text)
bot.infinity_polling()
```
To start the bot, simply open up a terminal and enter `python echo_bot.py` to run the bot! Test it by sending commands ('/start' and '/help') and arbitrary text messages.
## General API Documentation
### Types
All types are defined in types.py. They are all completely in line with the [Telegram API's definition of the types](https://core.telegram.org/bots/api#available-types), except for the Message's `from` field, which is renamed to `from_user` (because `from` is a Python reserved token). Thus, attributes such as `message_id` can be accessed directly with `message.message_id`. Note that `message.chat` can be either an instance of `User` or `GroupChat` (see [How can I distinguish a User and a GroupChat in message.chat?](#how-can-i-distinguish-a-user-and-a-groupchat-in-messagechat)).
The Message object also has a `content_type`attribute, which defines the type of the Message. `content_type` can be one of the following strings:
`text`, `audio`, `document`, `animation`, `game`, `photo`, `sticker`, `video`, `video_note`, `voice`, `location`, `contact`, `venue`, `dice`, `new_chat_members`, `left_chat_member`, `new_chat_title`, `new_chat_photo`, `delete_chat_photo`, `group_chat_created`, `supergroup_chat_created`, `channel_chat_created`, `migrate_to_chat_id`, `migrate_from_chat_id`, `pinned_message`, `invoice`, `successful_payment`, `connected_website`, `poll`, `passport_data`, `proximity_alert_triggered`, `video_chat_scheduled`, `video_chat_started`, `video_chat_ended`, `video_chat_participants_invited`, `web_app_data`, `message_auto_delete_timer_changed`, `forum_topic_created`, `forum_topic_closed`, `forum_topic_reopened`, `forum_topic_edited`, `general_forum_topic_hidden`, `general_forum_topic_unhidden`, `write_access_allowed`, `user_shared`, `chat_shared`, `story`.
You can use some types in one function. Example:
```content_types=["text", "sticker", "pinned_message", "photo", "audio"]```
### Methods
All [API methods](https://core.telegram.org/bots/api#available-methods) are located in the TeleBot class. They are renamed to follow common Python naming conventions. E.g. `getMe` is renamed to `get_me` and `sendMessage` to `send_message`.
### General use of the API
Outlined below are some general use cases of the API.
#### Message handlers
A message handler is a function that is decorated with the `message_handler` decorator of a TeleBot instance. Message handlers consist of one or multiple filters.
Each filter must return True for a certain message in order for a message handler to become eligible to handle that message. A message handler is declared in the following way (provided `bot` is an instance of TeleBot):
```python
@bot.message_handler(filters)
def function_name(message):
bot.reply_to(message, "This is a message handler")
```
`function_name` is not bound to any restrictions. Any function name is permitted with message handlers. The function must accept at most one argument, which will be the message that the function must handle.
`filters` is a list of keyword arguments.
A filter is declared in the following manner: `name=argument`. One handler may have multiple filters.
TeleBot supports the following filters:
|name|argument(s)|Condition|
|:---:|---| ---|
|content_types|list of strings (default `['text']`)|`True` if message.content_type is in the list of strings.|
|regexp|a regular expression as a string|`True` if `re.search(regexp_arg)` returns `True` and `message.content_type == 'text'` (See [Python Regular Expressions](https://docs.python.org/2/library/re.html))|
|commands|list of strings|`True` if `message.content_type == 'text'` and `message.text` starts with a command that is in the list of strings.|
|chat_types|list of chat types|`True` if `message.chat.type` in your filter|
|func|a function (lambda or function reference)|`True` if the lambda or function reference returns `True`|
Here are some examples of using the filters and message handlers:
```python
import telebot
bot = telebot.TeleBot("TOKEN")
# Handles all text messages that contains the commands '/start' or '/help'.
@bot.message_handler(commands=['start', 'help'])
def handle_start_help(message):
pass
# Handles all sent documents and audio files
@bot.message_handler(content_types=['document', 'audio'])
def handle_docs_audio(message):
pass
# Handles all text messages that match the regular expression
@bot.message_handler(regexp="SOME_REGEXP")
def handle_message(message):
pass
# Handles all messages for which the lambda returns True
@bot.message_handler(func=lambda message: message.document.mime_type == 'text/plain', content_types=['document'])
def handle_text_doc(message):
pass
# Which could also be defined as:
def test_message(message):
return message.document.mime_type == 'text/plain'
@bot.message_handler(func=test_message, content_types=['document'])
def handle_text_doc(message):
pass
# Handlers can be stacked to create a function which will be called if either message_handler is eligible
# This handler will be called if the message starts with '/hello' OR is some emoji
@bot.message_handler(commands=['hello'])
@bot.message_handler(func=lambda msg: msg.text.encode("utf-8") == SOME_FANCY_EMOJI)
def send_something(message):
pass
```
**Important: all handlers are tested in the order in which they were declared**
#### Edited Message handler
Handle edited messages
`@bot.edited_message_handler(filters) # <- passes a Message type object to your function`
#### Channel Post handler
Handle channel post messages
`@bot.channel_post_handler(filters) # <- passes a Message type object to your function`
#### Edited Channel Post handler
Handle edited channel post messages
`@bot.edited_channel_post_handler(filters) # <- passes a Message type object to your function`
#### Callback Query Handler
Handle callback queries
```python
@bot.callback_query_handler(func=lambda call: True)
def test_callback(call): # <- passes a CallbackQuery type object to your function
logger.info(call)
```
#### Shipping Query Handler
Handle shipping queries
`@bot.shipping_query_handler() # <- passes a ShippingQuery type object to your function`
#### Pre Checkout Query Handler
Handle pre checkout queries
`@bot.pre_checkout_query_handler() # <- passes a PreCheckoutQuery type object to your function`
#### Poll Handler
Handle poll updates
`@bot.poll_handler() # <- passes a Poll type object to your function`
#### Poll Answer Handler
Handle poll answers
`@bot.poll_answer_handler() # <- passes a PollAnswer type object to your function`
#### My Chat Member Handler
Handle updates of a the bot's member status in a chat
`@bot.my_chat_member_handler() # <- passes a ChatMemberUpdated type object to your function`
#### Chat Member Handler
Handle updates of a chat member's status in a chat
`@bot.chat_member_handler() # <- passes a ChatMemberUpdated type object to your function`
*Note: "chat_member" updates are not requested by default. If you want to allow all update types, set `allowed_updates` in `bot.polling()` / `bot.infinity_polling()` to `util.update_types`*
#### Chat Join Request Handler
Handle chat join requests using:
`@bot.chat_join_request_handler() # <- passes ChatInviteLink type object to your function`
### Inline Mode
More information about [Inline mode](https://core.telegram.org/bots/inline).
#### Inline handler
Now, you can use inline_handler to get inline queries in telebot.
```python
@bot.inline_handler(lambda query: query.query == 'text')
def query_text(inline_query):
# Query message is text
```
#### Chosen Inline handler
Use chosen_inline_handler to get chosen_inline_result in telebot. Don't forget to add the /setinlinefeedback
command for @Botfather.
More information : [collecting-feedback](https://core.telegram.org/bots/inline#collecting-feedback)
```python
@bot.chosen_inline_handler(func=lambda chosen_inline_result: True)
def test_chosen(chosen_inline_result):
# Process all chosen_inline_result.
```
#### Answer Inline Query
```python
@bot.inline_handler(lambda query: query.query == 'text')
def query_text(inline_query):
try:
r = types.InlineQueryResultArticle('1', 'Result', types.InputTextMessageContent('Result message.'))
r2 = types.InlineQueryResultArticle('2', 'Result2', types.InputTextMessageContent('Result message2.'))
bot.answer_inline_query(inline_query.id, [r, r2])
except Exception as e:
print(e)
```
### Additional API features
#### Middleware Handlers
A middleware handler is a function that allows you to modify requests or the bot context as they pass through the
Telegram to the bot. You can imagine middleware as a chain of logic connection handled before any other handlers are
executed. Middleware processing is disabled by default, enable it by setting `apihelper.ENABLE_MIDDLEWARE = True`.
```python
apihelper.ENABLE_MIDDLEWARE = True
@bot.middleware_handler(update_types=['message'])
def modify_message(bot_instance, message):
# modifying the message before it reaches any other handler
message.another_text = message.text + ':changed'
@bot.message_handler(commands=['start'])
def start(message):
# the message is already modified when it reaches message handler
assert message.another_text == message.text + ':changed'
```
There are other examples using middleware handler in the [examples/middleware](examples/middleware) directory.
#### Class-based middlewares
There are class-based middlewares.
Basic class-based middleware looks like this:
```python
class Middleware(BaseMiddleware):
def __init__(self):
self.update_types = ['message']
def pre_process(self, message, data):
data['foo'] = 'Hello' # just for example
# we edited the data. now, this data is passed to handler.
# return SkipHandler() -> this will skip handler
# return CancelUpdate() -> this will cancel update
def post_process(self, message, data, exception=None):
print(data['foo'])
if exception: # check for exception
print(exception)
```
Class-based middleware should have two functions: post and pre process.
So, as you can see, class-based middlewares work before and after handler execution.
For more, check out in [examples](https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples/middleware/class_based)
#### Custom filters
Also, you can use built-in custom filters. Or, you can create your own filter.
[Example of custom filter](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/custom_filters/general_custom_filters.py)
Also, we have examples on them. Check this links:
You can check some built-in filters in source [code](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/telebot/custom_filters.py)
Example of [filtering by id](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/custom_filters/id_filter_example.py)
Example of [filtering by text](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/custom_filters/text_filter_example.py)
If you want to add some built-in filter, you are welcome to add it in custom_filters.py file.
Here is example of creating filter-class:
```python
class IsAdmin(telebot.custom_filters.SimpleCustomFilter):
# Class will check whether the user is admin or creator in group or not
key='is_chat_admin'
@staticmethod
def check(message: telebot.types.Message):
return bot.get_chat_member(message.chat.id,message.from_user.id).status in ['administrator','creator']
# To register filter, you need to use method add_custom_filter.
bot.add_custom_filter(IsAdmin())
# Now, you can use it in handler.
@bot.message_handler(is_chat_admin=True)
def admin_of_group(message):
bot.send_message(message.chat.id, 'You are admin of this group!')
```
#### TeleBot
```python
import telebot
TOKEN = '<token_string>'
tb = telebot.TeleBot(TOKEN) #create a new Telegram Bot object
# Upon calling this function, TeleBot starts polling the Telegram servers for new messages.
# - interval: int (default 0) - The interval between polling requests
# - timeout: integer (default 20) - Timeout in seconds for long polling.
# - allowed_updates: List of Strings (default None) - List of update types to request
tb.infinity_polling(interval=0, timeout=20)
# getMe
user = tb.get_me()
# setWebhook
tb.set_webhook(url="http://example.com", certificate=open('mycert.pem'))
# unset webhook
tb.remove_webhook()
# getUpdates
updates = tb.get_updates()
# or
updates = tb.get_updates(1234,100,20) #get_Updates(offset, limit, timeout):
# sendMessage
tb.send_message(chat_id, text)
# editMessageText
tb.edit_message_text(new_text, chat_id, message_id)
# forwardMessage
tb.forward_message(to_chat_id, from_chat_id, message_id)
# All send_xyz functions which can take a file as an argument, can also take a file_id instead of a file.
# sendPhoto
photo = open('/tmp/photo.png', 'rb')
tb.send_photo(chat_id, photo)
tb.send_photo(chat_id, "FILEID")
# sendAudio
audio = open('/tmp/audio.mp3', 'rb')
tb.send_audio(chat_id, audio)
tb.send_audio(chat_id, "FILEID")
## sendAudio with duration, performer and title.
tb.send_audio(CHAT_ID, file_data, 1, 'eternnoir', 'pyTelegram')
# sendVoice
voice = open('/tmp/voice.ogg', 'rb')
tb.send_voice(chat_id, voice)
tb.send_voice(chat_id, "FILEID")
# sendDocument
doc = open('/tmp/file.txt', 'rb')
tb.send_document(chat_id, doc)
tb.send_document(chat_id, "FILEID")
# sendSticker
sti = open('/tmp/sti.webp', 'rb')
tb.send_sticker(chat_id, sti)
tb.send_sticker(chat_id, "FILEID")
# sendVideo
video = open('/tmp/video.mp4', 'rb')
tb.send_video(chat_id, video)
tb.send_video(chat_id, "FILEID")
# sendVideoNote
videonote = open('/tmp/videonote.mp4', 'rb')
tb.send_video_note(chat_id, videonote)
tb.send_video_note(chat_id, "FILEID")
# sendLocation
tb.send_location(chat_id, lat, lon)
# sendChatAction
# action_string can be one of the following strings: 'typing', 'upload_photo', 'record_video', 'upload_video',
# 'record_audio', 'upload_audio', 'upload_document' or 'find_location'.
tb.send_chat_action(chat_id, action_string)
# getFile
# Downloading a file is straightforward
# Returns a File object
import requests
file_info = tb.get_file(file_id)
file = requests.get('https://api.telegram.org/file/bot{0}/{1}'.format(API_TOKEN, file_info.file_path))
```
#### Reply markup
All `send_xyz` functions of TeleBot take an optional `reply_markup` argument. This argument must be an instance of `ReplyKeyboardMarkup`, `ReplyKeyboardRemove` or `ForceReply`, which are defined in types.py.
```python
from telebot import types
# Using the ReplyKeyboardMarkup class
# It's constructor can take the following optional arguments:
# - resize_keyboard: True/False (default False)
# - one_time_keyboard: True/False (default False)
# - selective: True/False (default False)
# - row_width: integer (default 3)
# row_width is used in combination with the add() function.
# It defines how many buttons are fit on each row before continuing on the next row.
markup = types.ReplyKeyboardMarkup(row_width=2)
itembtn1 = types.KeyboardButton('a')
itembtn2 = types.KeyboardButton('v')
itembtn3 = types.KeyboardButton('d')
markup.add(itembtn1, itembtn2, itembtn3)
tb.send_message(chat_id, "Choose one letter:", reply_markup=markup)
# or add KeyboardButton one row at a time:
markup = types.ReplyKeyboardMarkup()
itembtna = types.KeyboardButton('a')
itembtnv = types.KeyboardButton('v')
itembtnc = types.KeyboardButton('c')
itembtnd = types.KeyboardButton('d')
itembtne = types.KeyboardButton('e')
markup.row(itembtna, itembtnv)
markup.row(itembtnc, itembtnd, itembtne)
tb.send_message(chat_id, "Choose one letter:", reply_markup=markup)
```
The last example yields this result:

```python
# ReplyKeyboardRemove: hides a previously sent ReplyKeyboardMarkup
# Takes an optional selective argument (True/False, default False)
markup = types.ReplyKeyboardRemove(selective=False)
tb.send_message(chat_id, message, reply_markup=markup)
```
```python
# ForceReply: forces a user to reply to a message
# Takes an optional selective argument (True/False, default False)
markup = types.ForceReply(selective=False)
tb.send_message(chat_id, "Send me another word:", reply_markup=markup)
```
ForceReply:

### Working with entities
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
Attributes:
* `type`
* `url`
* `offset`
* `length`
* `user`
**Here's an Example:**`message.entities[num].<attribute>`<br>
Here `num` is the entity number or order of entity in a reply, for if incase there are multiple entities in the reply/message.<br>
`message.entities` returns a list of entities object. <br>
`message.entities[0].type` would give the type of the first entity<br>
Refer [Bot Api](https://core.telegram.org/bots/api#messageentity) for extra details
## Advanced use of the API
### Using local Bot API Server
Since version 5.0 of the Bot API, you have the possibility to run your own [Local Bot API Server](https://core.telegram.org/bots/api#using-a-local-bot-api-server).
pyTelegramBotAPI also supports this feature.
```python
from telebot import apihelper
apihelper.API_URL = "http://localhost:4200/bot{0}/{1}"
```
**Important: Like described [here](https://core.telegram.org/bots/api#logout), you have to log out your bot from the Telegram server before switching to your local API server. in pyTelegramBotAPI use `bot.log_out()`**
*Note: 4200 is an example port*
### Asynchronous TeleBot
New: There is an asynchronous implementation of telebot.
To enable this behaviour, create an instance of AsyncTeleBot instead of TeleBot.
```python
tb = telebot.AsyncTeleBot("TOKEN")
```
Now, every function that calls the Telegram API is executed in a separate asynchronous task.
Using AsyncTeleBot allows you to do the following:
```python
import telebot
tb = telebot.AsyncTeleBot("TOKEN")
@tb.message_handler(commands=['start'])
async def start_message(message):
await bot.send_message(message.chat.id, 'Hello!')
```
See more in [examples](https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples/asynchronous_telebot)
### Sending large text messages
Sometimes you must send messages that exceed 5000 characters. The Telegram API can not handle that many characters in one request, so we need to split the message in multiples. Here is how to do that using the API:
```python
from telebot import util
large_text = open("large_text.txt", "rb").read()
# Split the text each 3000 characters.
# split_string returns a list with the splitted text.
splitted_text = util.split_string(large_text, 3000)
for text in splitted_text:
tb.send_message(chat_id, text)
```
Or you can use the new `smart_split` function to get more meaningful substrings:
```python
from telebot import util
large_text = open("large_text.txt", "rb").read()
# Splits one string into multiple strings, with a maximum amount of `chars_per_string` (max. 4096)
# Splits by last '\n', '. ' or ' ' in exactly this priority.
# smart_split returns a list with the splitted text.
splitted_text = util.smart_split(large_text, chars_per_string=3000)
for text in splitted_text:
tb.send_message(chat_id, text)
```
### Controlling the amount of Threads used by TeleBot
The TeleBot constructor takes the following optional arguments:
- threaded: True/False (default True). A flag to indicate whether
TeleBot should execute message handlers on it's polling Thread.
### The listener mechanism
As an alternative to the message handlers, one can also register a function as a listener to TeleBot.
NOTICE: handlers won't disappear! Your message will be processed both by handlers and listeners. Also, it's impossible to predict which will work at first because of threading. If you use threaded=False, custom listeners will work earlier, after them handlers will be called.
Example:
```python
def handle_messages(messages):
for message in messages:
# Do something with the message
bot.reply_to(message, 'Hi')
bot.set_update_listener(handle_messages)
bot.infinity_polling()
```
### Using web hooks
When using webhooks telegram sends one Update per call, for processing it you should call process_new_messages([update.message]) when you recieve it.
There are some examples using webhooks in the [examples/webhook_examples](examples/webhook_examples) directory.
### Logging
You can use the Telebot module logger to log debug info about Telebot. Use `telebot.logger` to get the logger of the TeleBot module.
It is possible to add custom logging Handlers to the logger. Refer to the [Python logging module page](https://docs.python.org/2/library/logging.html) for more info.
```python
import logging
logger = telebot.logger
telebot.logger.setLevel(logging.DEBUG) # Outputs debug messages to console.
```
### Proxy
For sync:
You can use proxy for request. `apihelper.proxy` object will use by call `requests` proxies argument.
```python
from telebot import apihelper
apihelper.proxy = {'http':'http://127.0.0.1:3128'}
```
If you want to use socket5 proxy you need install dependency `pip install requests[socks]` and make sure, that you have the latest version of `gunicorn`, `PySocks`, `pyTelegramBotAPI`, `requests` and `urllib3`.
```python
apihelper.proxy = {'https':'socks5://userproxy:password@proxy_address:port'}
```
For async:
```python
from telebot import asyncio_helper
asyncio_helper.proxy = 'http://127.0.0.1:3128' #url
```
### Testing
You can disable or change the interaction with real Telegram server by using
```python
apihelper.CUSTOM_REQUEST_SENDER = your_handler
```
parameter. You can pass there your own function that will be called instead of _requests.request_.
For example:
```python
def custom_sender(method, url, **kwargs):
print("custom_sender. method: {}, url: {}, params: {}".format(method, url, kwargs.get("params")))
result = util.CustomRequestResponse('{"ok":true,"result":{"message_id": 1, "date": 1, "chat": {"id": 1, "type": "private"}}}')
return result
```
Then you can use API and proceed requests in your handler code.
```python
apihelper.CUSTOM_REQUEST_SENDER = custom_sender
tb = TeleBot("test")
res = tb.send_message(123, "Test")
```
Result will be:
`custom_sender. method: post, url: https://api.telegram.org/botololo/sendMessage, params: {'chat_id': '123', 'text': 'Test'}`
## API conformance limitations
* ➕ [Bot API 4.5](https://core.telegram.org/bots/api-changelog#december-31-2019) - No nested MessageEntities and Markdown2 support
* ➕ [Bot API 4.1](https://core.telegram.org/bots/api-changelog#august-27-2018) - No Passport support
* ➕ [Bot API 4.0](https://core.telegram.org/bots/api-changelog#july-26-2018) - No Passport support
## AsyncTeleBot
### Asynchronous version of telebot
We have a fully asynchronous version of TeleBot.
This class is not controlled by threads. Asyncio tasks are created to execute all the stuff.
### EchoBot
Echo Bot example on AsyncTeleBot:
```python
# This is a simple echo bot using the decorator mechanism.
# It echoes any incoming text messages.
from telebot.async_telebot import AsyncTeleBot
import asyncio
bot = AsyncTeleBot('TOKEN')
# Handle '/start' and '/help'
@bot.message_handler(commands=['help', 'start'])
async def send_welcome(message):
await bot.reply_to(message, """\
Hi there, I am EchoBot.
I am here to echo your kind words back to you. Just say anything nice and I'll say the exact same thing to you!\
""")
# Handle all other messages with content_type 'text' (content_types defaults to ['text'])
@bot.message_handler(func=lambda message: True)
async def echo_message(message):
await bot.reply_to(message, message.text)
asyncio.run(bot.polling())
```
As you can see here, keywords are await and async.
### Why should I use async?
Asynchronous tasks depend on processor performance. Many asynchronous tasks can run parallelly, while thread tasks will block each other.
### Differences in AsyncTeleBot
AsyncTeleBot is asynchronous. It uses aiohttp instead of requests module.
### Examples
See more examples in our [examples](https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples/asynchronous_telebot) folder
## F.A.Q.
### How can I distinguish a User and a GroupChat in message.chat?
Telegram Bot API support new type Chat for message.chat.
- Check the ```type``` attribute in ```Chat``` object:
```python
if message.chat.type == "private":
# private chat message
if message.chat.type == "group":
# group chat message
if message.chat.type == "supergroup":
# supergroup chat message
if message.chat.type == "channel":
# channel message
```
### How can I handle reocurring ConnectionResetErrors?
Bot instances that were idle for a long time might be rejected by the server when sending a message due to a timeout of the last used session. Add `apihelper.SESSION_TIME_TO_LIVE = 5 * 60` to your initialisation to force recreation after 5 minutes without any activity.
## The Telegram Chat Group
Get help. Discuss. Chat.
* Join the [pyTelegramBotAPI Telegram Chat Group](https://t.me/+GNAFesxfJ-o5OTRl)
## Telegram Channel
Join the [News channel](https://t.me/pyTelegramBotAPI). Here we will post releases and updates.
## More examples
* [Echo Bot](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/echo_bot.py)
* [Deep Linking](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/deep_linking.py)
* [next_step_handler Example](https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/step_example.py)
## Code Template
Template is a ready folder that contains architecture of basic project.
Here are some examples of template:
* [AsyncTeleBot template](https://github.com/coder2020official/asynctelebot_template)
* [TeleBot template](https://github.com/coder2020official/telebot_template)
## Bots using this library
* [SiteAlert bot](https://telegram.me/SiteAlert_bot) ([source](https://github.com/ilteoood/SiteAlert-Python)) by *ilteoood* - Monitors websites and sends a notification on changes
* [TelegramLoggingBot](https://github.com/aRandomStranger/TelegramLoggingBot) by *aRandomStranger*
* [Telegram LMGTFY_bot](https://github.com/GabrielRF/telegram-lmgtfy_bot) by *GabrielRF* - Let me Google that for you.
* [Telegram Proxy Bot](https://github.com/mrgigabyte/proxybot) by *mrgigabyte*
* [RadRetroRobot](https://github.com/Tronikart/RadRetroRobot) by *Tronikart* - Multifunctional Telegram Bot RadRetroRobot.
* [League of Legends bot](https://telegram.me/League_of_Legends_bot) ([source](https://github.com/i32ropie/lol)) by *i32ropie*
* [NeoBot](https://github.com/neoranger/NeoBot) by [@NeoRanger](https://github.com/neoranger)
* [ColorCodeBot](https://t.me/colorcodebot) ([source](https://github.com/andydecleyre/colorcodebot)) - Share code snippets as beautifully syntax-highlighted images.
* [ComedoresUGRbot](http://telegram.me/ComedoresUGRbot) ([source](https://github.com/alejandrocq/ComedoresUGRbot)) by [*alejandrocq*](https://github.com/alejandrocq) - Telegram bot to check the menu of Universidad de Granada dining hall.
* [proxybot](https://github.com/p-hash/proxybot) - Simple Proxy Bot for Telegram. by p-hash
* [DonantesMalagaBot](https://github.com/vfranch/DonantesMalagaBot) - DonantesMalagaBot facilitates information to Malaga blood donors about the places where they can donate today or in the incoming days. It also records the date of the last donation so that it helps the donors to know when they can donate again. - by vfranch
* [DuttyBot](https://github.com/DmytryiStriletskyi/DuttyBot) by *Dmytryi Striletskyi* - Timetable for one university in Kiev.
* [wat-bridge](https://github.com/rmed/wat-bridge) by [*rmed*](https://github.com/rmed) - Send and receive messages to/from WhatsApp through Telegram
* [filmratingbot](http://t.me/filmratingbot)([source](https://github.com/jcolladosp/film-rating-bot)) by [*jcolladosp*](https://github.com/jcolladosp) - Telegram bot using the Python API that gets films rating from IMDb and metacritic
* [Send2Kindlebot](http://t.me/Send2KindleBot) ([source](https://github.com/GabrielRF/Send2KindleBot)) by *GabrielRF* - Send to Kindle service.
* [RastreioBot](http://t.me/RastreioBot) ([source](https://github.com/GabrielRF/RastreioBot)) by *GabrielRF* - Bot used to track packages on the Brazilian Mail Service.
* [Spbu4UBot](http://t.me/Spbu4UBot)([link](https://github.com/EeOneDown/spbu4u)) by *EeOneDown* - Bot with timetables for SPbU students.
* [SmartySBot](http://t.me/ZDU_bot)([link](https://github.com/0xVK/SmartySBot)) by *0xVK* - Telegram timetable bot, for Zhytomyr Ivan Franko State University students.
* [LearnIt](https://t.me/LearnItbot)([link](https://github.com/tiagonapoli/LearnIt)) - A Telegram Bot created to help people to memorize other languages’ vocabulary.
* [Bot-Telegram-Shodan ](https://github.com/rubenleon/Bot-Telegram-Shodan) by [rubenleon](https://github.com/rubenleon)
* [VigoBusTelegramBot](https://t.me/vigobusbot) ([GitHub](https://github.com/Pythoneiro/VigoBus-TelegramBot)) - Bot that provides buses coming to a certain stop and their remaining time for the city of Vigo (Galicia - Spain)
* [kaishnik-bot](https://t.me/kaishnik_bot) ([source](https://github.com/airatk/kaishnik-bot)) by *airatk* - bot which shows all the necessary information to KNTRU-KAI students.
* [Robbie](https://t.me/romdeliverybot) ([source](https://github.com/FacuM/romdeliverybot_support)) by @FacuM - Support Telegram bot for developers and maintainers.
* [AsadovBot](https://t.me/asadov_bot) ([source](https://github.com/desexcile/BotApi)) by @DesExcile - Сatalog of poems by Eduard Asadov.
* [thesaurus_com_bot](https://t.me/thesaurus_com_bot) ([source](https://github.com/LeoSvalov/words-i-learn-bot)) by @LeoSvalov - words and synonyms from [dictionary.com](https://www.dictionary.com) and [thesaurus.com](https://www.thesaurus.com) in the telegram.
* [InfoBot](https://t.me/info2019_bot) ([source](https://github.com/irevenko/info-bot)) by @irevenko - An all-round bot that displays some statistics (weather, time, crypto etc...)
* [FoodBot](https://t.me/ChensonUz_bot) ([source](https://github.com/Fliego/old_restaurant_telegram_chatbot)) by @Fliego - a simple bot for food ordering
* [Sporty](https://t.me/SportydBot) ([source](https://github.com/0xnu/sporty)) by @0xnu - Telegram bot for displaying the latest news, sports schedules and injury updates.
* [JoinGroup Silencer Bot](https://t.me/joingroup_silencer_bot) ([source](https://github.com/zeph1997/Telegram-Group-Silencer-Bot)) by [@zeph1997](https://github.com/zeph1997) - A Telegram Bot to remove "join group" and "removed from group" notifications.
* [TasksListsBot](https://t.me/TasksListsBot) ([source](https://github.com/Pablo-Davila/TasksListsBot)) by [@Pablo-Davila](https://github.com/Pablo-Davila) - A (tasks) lists manager bot for Telegram.
* [MyElizaPsychologistBot](https://t.me/TasksListsBot) ([source](https://github.com/Pablo-Davila/MyElizaPsychologistBot)) by [@Pablo-Davila](https://github.com/Pablo-Davila) - An implementation of the famous Eliza psychologist chatbot.
* [Frcstbot](https://t.me/frcstbot) ([source](https://github.com/Mrsqd/frcstbot_public)) by [Mrsqd](https://github.com/Mrsqd). A Telegram bot that will always be happy to show you the weather forecast.
* [MineGramBot](https://github.com/ModischFabrications/MineGramBot) by [ModischFabrications](https://github.com/ModischFabrications). This bot can start, stop and monitor a minecraft server.
* [Tabletop DiceBot](https://github.com/dexpiper/tabletopdicebot) by [dexpiper](https://github.com/dexpiper). This bot can roll multiple dices for RPG-like games, add positive and negative modifiers and show short descriptions to the rolls.
* [BarnameKon](https://t.me/BarnameKonBot) by [Anvaari](https://github.com/anvaari). This Bot make "Add to google calendar" link for your events. It give information about event and return link. It work for Jalali calendar and in Tehran Time. [Source code](https://github.com/anvaari/BarnameKon)
* [Translator bot](https://github.com/AREEG94FAHAD/translate_text_bot) by Areeg Fahad. This bot can be used to translate texts.
* [Digital Cryptocurrency bot](https://github.com/AREEG94FAHAD/currencies_bot) by Areeg Fahad. With this bot, you can now monitor the prices of more than 12 digital Cryptocurrency.
* [Anti-Tracking Bot](https://t.me/AntiTrackingBot) by Leon Heess [(source)](https://github.com/leonheess/AntiTrackingBot). Send any link, and the bot tries its best to remove all tracking from the link you sent.
* [Developer Bot](https://t.me/IndDeveloper_bot) by [Vishal Singh](https://github.com/vishal2376) [(source code)](https://github.com/vishal2376/telegram-bot) This telegram bot can do tasks like GitHub search & clone,provide c++ learning resources ,Stackoverflow search, Codeforces(profile visualizer,random problems)
* [oneIPO bot](https://github.com/aaditya2200/IPO-proj) by [Aadithya](https://github.com/aaditya2200) & [Amol Soans](https://github.com/AmolDerickSoans) This Telegram bot provides live updates , data and documents on current and upcoming IPOs(Initial Public Offerings)
* [CoronaGraphsBot](https://t.me/CovidGraph_bot) ([source](https://github.com/TrevorWinstral/CoronaGraphsBot)) by *TrevorWinstral* - Gets live COVID Country data, plots it, and briefs the user
* [ETHLectureBot](https://t.me/ETHLectureBot) ([source](https://github.com/TrevorWinstral/ETHLectureBot)) by *TrevorWinstral* - Notifies ETH students when their lectures have been uploaded
* [Vlun Finder Bot](https://github.com/resinprotein2333/Vlun-Finder-bot) by [Resinprotein2333](https://github.com/resinprotein2333). This bot can help you to find The information of CVE vulnerabilities.
* [ETHGasFeeTrackerBot](https://t.me/ETHGasFeeTrackerBot) ([Source](https://github.com/DevAdvik/ETHGasFeeTrackerBot]) by *DevAdvik* - Get Live Ethereum Gas Fees in GWEI
* [Google Sheet Bot](https://github.com/JoachimStanislaus/Tele_Sheet_bot) by [JoachimStanislaus](https://github.com/JoachimStanislaus). This bot can help you to track your expenses by uploading your bot entries to your google sheet.
* [GrandQuiz Bot](https://github.com/Carlosma7/TFM-GrandQuiz) by [Carlosma7](https://github.com/Carlosma7). This bot is a trivia game that allows you to play with people from different ages. This project addresses the use of a system through chatbots to carry out a social and intergenerational game as an alternative to traditional game development.
* [Diccionario de la RAE](https://t.me/dleraebot) ([source](https://github.com/studentenherz/dleraebot)) This bot lets you find difinitions of words in Spanish using [RAE's dictionary](https://dle.rae.es/). It features direct message and inline search.
* [remoteTelegramShell](https://github.com/EnriqueMoran/remoteTelegramShell) by [EnriqueMoran](https://github.com/EnriqueMoran). Control your LinuxOS computer through Telegram.
* [Commerce Telegram Bot](https://github.com/ayitinya/commerce-telegram-bot/). Make purchases of items in a store with an Admin panel for data control and notifications.
* [Pyfram-telegram-bot](https://github.com/skelly37/pyfram-telegram-bot) Query wolframalpha.com and make use of its API through Telegram.
* [TranslateThisVideoBot](https://gitlab.com/WuerfelDev/translatethisvideo) This Bot can understand spoken text in videos and translate it to English
* [Zyprexa](https://t.me/mathemathicsBot) ([source](https://github.com/atif5/zyprexa)) Zyprexa can solve, help you solve any mathematical problem you encounter and convert your regular mathematical expressions into beautiful imagery using LaTeX.
* [Bincode-telegram-bot](https://github.com/tusharhero/bincode-telegram-bot) by [tusharhero](https://github.com/tusharhero) - Makes [bincodes](https://github.com/tusharhero/bincode) from text provides and also converts them back to text.
* [hydrolib_bot](https://github.com/Mayson90/hydrolib_bot) Toolset for Hydrophilia tabletop game (game cards, rules, structure...).
* [Gugumoe-bot](http://t.me/gugumoe_bot) ([source](https://github.com/GooGuJiang/Gugumoe-bot)) by [咕谷酱](https://gmoe.cc) GuXiaoJiang is a multi-functional robot, such as OSU game information query, IP test, animation screenshot search and other functions.
* [Feedback-bot](https://github.com/coder2020official/feedbackbot) A feedback bot for user-admin communication. Made on AsyncTeleBot, using [template](https://github.com/coder2020official/asynctelebot_template).
* [TeleServ](https://github.com/ablakely/TeleServ) by [ablakely](https://github.com/ablakely) This is a Telegram to IRC bridge which links as an IRC server and makes Telegram users appear as native IRC users.
* [Simple Store Bot](https://github.com/AntonGlyzin/myshopbot) by [Anton Glyzin](https://github.com/AntonGlyzin) This is a simple telegram-store with an admin panel. Designed according to a template.
* [Media Rating Bot](https://t.me/mediaratingbot) ([source](https://github.com/CommanderCRM/MediaRatingBot))by [CommanderCRM](https://github.com/CommanderCRM). This bot aggregates media (movies, TV series, etc.) ratings from IMDb, Rotten Tomatoes, Metacritic, TheMovieDB, FilmAffinity and also provides number of votes of said media on IMDb.
* [Spot Seek Bot](https://t.me/SpotSeekBot) ([source](https://github.com/arashnm80/spot-seek-bot)) by [Arashnm80](https://github.com/arashnm80). This is a free & open source telegram bot for downloading tracks, albums or playlists from spotify.
* [CalendarIT Bot](https://t.me/calendarit_bot) ([source](https://github.com/codebyzen/CalendarIT_Telegram_Bot))by [CodeByZen](https://github.com/codebyzen). A simple, but extensible Python Telegram bot, can post acquainted with what is happening today, tomorrow or what happened 20 years ago to channel.
* [DownloadMusicBOT](https://github.com/fcoagz/DownloadMusicBOT) by *Francisco Griman* - It is a simple bot that downloads audio from YouTube videos on Telegram.
* [AwesomeChatGPTBot](https://github.com/Kourva/AwesomeChatGPTBot) - Simple ChatGTP-3.5 bot. It is FREE and can remember chat history for a while With pre-defined roles!
* [QR-Code For You Bot](https://t.me/qrcode_for_you_bot) ([source](https://github.com/arashnm80/qrcode-for-you-bot)) by [Arashnm80](https://github.com/arashnm80). Telegram qrcode generator bot created with pyhton and telebot.
* [Best Instagram Downloader Bot](https://t.me/Best_Instagram_Downloader_Bot) ([source](https://github.com/arashnm80/best-instagram-downloader)) by [Arashnm80](https://github.com/arashnm80). Free and open source telegram bot to download posts and reels from Instagram.
* [4K YouTube Downloader](https://github.com/hansanaD/TelegramYTDLBot/) - Youtube Downloader with upto 4K resolution support.
* [DrinkGenius-Bot](https://t.me/cocktail_recommendation_bot) ([source](https://github.com/Povladarchik/DrinkGenius-Bot)) by [Povladarchik](https://github.com/Povladarchik). Your personal assistant in the world of cocktails.
* [Pytgpt-Bot](https://t.me/pytgpt_bot) ([source](https://github.com/Simatwa/pytgpt-bot)) by [Smartwa](https://github.com/Simatwa). AI powered bot for chatting, text-to-image and text-to-speech conversions.
* [BetterForward](https://github.com/SideCloudGroup/BetterForward) by [SideCloud](https://github.com/SideCloudGroup). Probably the most reliable Message Forwarding Bot in Telegram via the Topic feature.
**Want to have your bot listed here? Just make a pull request. Only bots with public source code are accepted.**
================================================
FILE: doc_req.txt
================================================
-r requirements.txt
furo
sphinx_copybutton
git+https://github.com/eternnoir/pyTelegramBotAPI.git
================================================
FILE: docs/Makefile
================================================
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
================================================
FILE: docs/source/async_version/index.rst
================================================
====================
AsyncTeleBot
====================
.. meta::
:description: Asynchronous pyTelegramBotAPI
:keywords: ptba, pytba, pyTelegramBotAPI, asynctelebot, documentation
AsyncTeleBot methods
--------------------
.. automodule:: telebot.async_telebot
:members:
:undoc-members:
:show-inheritance:
Asyncio filters
---------------
.. automodule:: telebot.asyncio_filters
:members:
:undoc-members:
:show-inheritance:
Asyncio handler backends
------------------------
.. automodule:: telebot.asyncio_handler_backends
:members:
:undoc-members:
:show-inheritance:
Extensions
------------------------
.. automodule:: telebot.ext.aio.webhooks
:members:
:undoc-members:
:show-inheritance:
================================================
FILE: docs/source/calldata.rst
================================================
=====================
Callback data factory
=====================
.. meta::
:description: Callback data factory in pyTelegramBotAPI
:keywords: ptba, pytba, pyTelegramBotAPI, callbackdatafactory, guide, callbackdata, factory
callback\_data file
-----------------------------
.. automodule:: telebot.callback_data
:members:
:undoc-members:
:show-inheritance:
================================================
FILE: docs/source/conf.py
================================================
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
from datetime import datetime
# -- Project information -----------------------------------------------------
project = 'pyTelegramBotAPI'
author = 'coder2020official'
copyright = f'2022-{datetime.now().year}, {author}'
# The full version, including alpha/beta/rc tags
release = '4.32.0'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autosectionlabel',
'sphinx.ext.autodoc',
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
"sphinx_copybutton",
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'furo'
# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
#html_logo = 'logo.png'
html_theme_options = {
"light_css_variables": {
"color-brand-primary": "#7C4DFF",
"color-brand-content": "#7C4DFF",
},
"light_logo": "logo.png",
"dark_logo": "logo2.png",
}
locale_dirs = ["locales/"]
================================================
FILE: docs/source/formatting.rst
================================================
==================
Formatting options
==================
.. meta::
:description: Formatting options in pyTelegramBotAPI
:keywords: html, markdown, parse_mode, formatting, ptba, pytba, pyTelegramBotAPI
.. automodule:: telebot.formatting
:members:
:undoc-members:
:show-inheritance:
================================================
FILE: docs/source/index.rst
================================================
.. pyTelegramBotAPI documentation master file, created by
sphinx-quickstart on Fri Feb 18 20:58:37 2022.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to pyTelegramBotAPI's documentation!
============================================
.. meta::
:description: Official documentation of pyTelegramBotAPI
:keywords: ptba, pytba, pyTelegramBotAPI, documentation, guide
=======
TeleBot
=======
TeleBot is synchronous and asynchronous implementation of `Telegram Bot API <https://core.telegram.org/bots/api>`_.
Chats
-----
English chat: `Private chat <https://telegram.me/joinchat/Bn4ixj84FIZVkwhk2jag6A>`__
Russian chat: `@pytelegrambotapi_talks_ru <https://t.me/pytelegrambotapi_talks_ru>`__
News: `@pyTelegramBotAPI <https://t.me/pytelegrambotapi>`__
Pypi: `Pypi <https://pypi.org/project/pyTelegramBotAPI/>`__
Source: `Github repository <https://github.com/eternnoir/pyTelegramBotAPI>`__
Some features:
--------------
Easy to learn and use.
Easy to understand.
Both sync and async.
Examples on features.
States
And more...
Content
--------
.. toctree::
install
quick_start
types
sync_version/index
async_version/index
calldata
util
formatting
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
================================================
FILE: docs/source/install.rst
================================================
==================
Installation Guide
==================
.. meta::
:description: Installation of pyTelegramBotAPI
:keywords: ptba, pytba, pyTelegramBotAPI, installation, guide
Using PIP
----------
.. code-block:: bash
$ pip install pyTelegramBotAPI
Using pipenv
------------
.. code-block:: bash
$ pipenv install pyTelegramBotAPI
By cloning repository
---------------------
.. code-block:: bash
$ git clone https://github.com/eternnoir/pyTelegramBotAPI.git
$ cd pyTelegramBotAPI
$ python setup.py install
Directly using pip
------------------
.. code-block:: bash
$ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git
It is generally recommended to use the first option.
While the API is production-ready, it is still under development and it has regular updates, do not forget to update it regularly by calling:
.. code-block:: bash
$ pip install pytelegrambotapi --upgrade
================================================
FILE: docs/source/locales/en/LC_MESSAGES/async_version.po
================================================
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, coder2020official
# This file is distributed under the same license as the pyTelegramBotAPI
# Documentation package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pyTelegramBotAPI Documentation \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-05 22:16+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
#: ../../source/async_version/index.rst:3
msgid "AsyncTeleBot"
msgstr ""
#: ../../source/async_version/index.rst:6
msgid "Asynchronous pyTelegramBotAPI"
msgstr ""
#: ../../source/async_version/index.rst:6
msgid "ptba, pytba, pyTelegramBotAPI, asynctelebot, documentation"
msgstr ""
#: ../../source/async_version/index.rst:12
msgid "AsyncTeleBot methods"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:1
#: telebot.async_telebot.ExceptionHandler:1 telebot.async_telebot.Handler:1
#: telebot.asyncio_filters.TextFilter:1
#: telebot.asyncio_handler_backends.BaseMiddleware:1
#: telebot.asyncio_handler_backends.CancelUpdate:1
#: telebot.asyncio_handler_backends.ContinueHandling:1
#: telebot.asyncio_handler_backends.SkipHandler:1
#: telebot.asyncio_handler_backends.State:1
#: telebot.asyncio_handler_backends.StatesGroup:1
#: telebot.ext.aio.webhooks.AsyncWebhookListener:1
msgid "Bases: :py:class:`object`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:1
msgid "This is the main asynchronous class for Bot."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:3
msgid "It allows you to add handlers for different kind of updates."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:5
msgid "Usage:"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:7
msgid "Using asynchronous implementation of TeleBot."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:16
msgid ""
"See more examples in examples/ directory: "
"https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:21
msgid "Install coloredlogs module to specify colorful_logs=True"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot
#: telebot.async_telebot.AsyncTeleBot.add_custom_filter
#: telebot.async_telebot.AsyncTeleBot.add_data
#: telebot.async_telebot.AsyncTeleBot.add_sticker_to_set
#: telebot.async_telebot.AsyncTeleBot.answer_callback_query
#: telebot.async_telebot.AsyncTeleBot.answer_inline_query
#: telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query
#: telebot.async_telebot.AsyncTeleBot.answer_shipping_query
#: telebot.async_telebot.AsyncTeleBot.answer_web_app_query
#: telebot.async_telebot.AsyncTeleBot.approve_chat_join_request
#: telebot.async_telebot.AsyncTeleBot.ban_chat_member
#: telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat
#: telebot.async_telebot.AsyncTeleBot.callback_query_handler
#: telebot.async_telebot.AsyncTeleBot.channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.chat_join_request_handler
#: telebot.async_telebot.AsyncTeleBot.chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.chosen_inline_handler
#: telebot.async_telebot.AsyncTeleBot.close_forum_topic
#: telebot.async_telebot.AsyncTeleBot.close_general_forum_topic
#: telebot.async_telebot.AsyncTeleBot.copy_message
#: telebot.async_telebot.AsyncTeleBot.copy_messages
#: telebot.async_telebot.AsyncTeleBot.create_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.create_forum_topic
#: telebot.async_telebot.AsyncTeleBot.create_invoice_link
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request
#: telebot.async_telebot.AsyncTeleBot.delete_chat_photo
#: telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set
#: telebot.async_telebot.AsyncTeleBot.delete_forum_topic
#: telebot.async_telebot.AsyncTeleBot.delete_message
#: telebot.async_telebot.AsyncTeleBot.delete_messages
#: telebot.async_telebot.AsyncTeleBot.delete_my_commands
#: telebot.async_telebot.AsyncTeleBot.delete_state
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_set
#: telebot.async_telebot.AsyncTeleBot.delete_webhook
#: telebot.async_telebot.AsyncTeleBot.download_file
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.edit_forum_topic
#: telebot.async_telebot.AsyncTeleBot.edit_general_forum_topic
#: telebot.async_telebot.AsyncTeleBot.edit_message_caption
#: telebot.async_telebot.AsyncTeleBot.edit_message_live_location
#: telebot.async_telebot.AsyncTeleBot.edit_message_media
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup
#: telebot.async_telebot.AsyncTeleBot.edit_message_text
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler
#: telebot.async_telebot.AsyncTeleBot.enable_saving_states
#: telebot.async_telebot.AsyncTeleBot.export_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.forward_message
#: telebot.async_telebot.AsyncTeleBot.forward_messages
#: telebot.async_telebot.AsyncTeleBot.get_chat
#: telebot.async_telebot.AsyncTeleBot.get_chat_administrators
#: telebot.async_telebot.AsyncTeleBot.get_chat_member
#: telebot.async_telebot.AsyncTeleBot.get_chat_member_count
#: telebot.async_telebot.AsyncTeleBot.get_chat_menu_button
#: telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers
#: telebot.async_telebot.AsyncTeleBot.get_file
#: telebot.async_telebot.AsyncTeleBot.get_file_url
#: telebot.async_telebot.AsyncTeleBot.get_game_high_scores
#: telebot.async_telebot.AsyncTeleBot.get_my_commands
#: telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights
#: telebot.async_telebot.AsyncTeleBot.get_my_description
#: telebot.async_telebot.AsyncTeleBot.get_my_name
#: telebot.async_telebot.AsyncTeleBot.get_my_short_description
#: telebot.async_telebot.AsyncTeleBot.get_state
#: telebot.async_telebot.AsyncTeleBot.get_sticker_set
#: telebot.async_telebot.AsyncTeleBot.get_updates
#: telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts
#: telebot.async_telebot.AsyncTeleBot.get_user_profile_photos
#: telebot.async_telebot.AsyncTeleBot.get_webhook_info
#: telebot.async_telebot.AsyncTeleBot.hide_general_forum_topic
#: telebot.async_telebot.AsyncTeleBot.infinity_polling
#: telebot.async_telebot.AsyncTeleBot.inline_handler
#: telebot.async_telebot.AsyncTeleBot.leave_chat
#: telebot.async_telebot.AsyncTeleBot.message_handler
#: telebot.async_telebot.AsyncTeleBot.message_reaction_count_handler
#: telebot.async_telebot.AsyncTeleBot.message_reaction_handler
#: telebot.async_telebot.AsyncTeleBot.my_chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.pin_chat_message
#: telebot.async_telebot.AsyncTeleBot.poll_answer_handler
#: telebot.async_telebot.AsyncTeleBot.poll_handler
#: telebot.async_telebot.AsyncTeleBot.polling
#: telebot.async_telebot.AsyncTeleBot.pre_checkout_query_handler
#: telebot.async_telebot.AsyncTeleBot.process_new_updates
#: telebot.async_telebot.AsyncTeleBot.promote_chat_member
#: telebot.async_telebot.AsyncTeleBot.register_callback_query_handler
#: telebot.async_telebot.AsyncTeleBot.register_channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.register_chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.register_chat_join_request_handler
#: telebot.async_telebot.AsyncTeleBot.register_chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.register_chosen_inline_handler
#: telebot.async_telebot.AsyncTeleBot.register_edited_channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.register_edited_message_handler
#: telebot.async_telebot.AsyncTeleBot.register_inline_handler
#: telebot.async_telebot.AsyncTeleBot.register_message_handler
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_count_handler
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_handler
#: telebot.async_telebot.AsyncTeleBot.register_my_chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.register_poll_answer_handler
#: telebot.async_telebot.AsyncTeleBot.register_poll_handler
#: telebot.async_telebot.AsyncTeleBot.register_pre_checkout_query_handler
#: telebot.async_telebot.AsyncTeleBot.register_removed_chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.register_shipping_query_handler
#: telebot.async_telebot.AsyncTeleBot.removed_chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.reopen_forum_topic
#: telebot.async_telebot.AsyncTeleBot.reopen_general_forum_topic
#: telebot.async_telebot.AsyncTeleBot.reply_to
#: telebot.async_telebot.AsyncTeleBot.reset_data
#: telebot.async_telebot.AsyncTeleBot.restrict_chat_member
#: telebot.async_telebot.AsyncTeleBot.retrieve_data
#: telebot.async_telebot.AsyncTeleBot.revoke_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.run_webhooks
#: telebot.async_telebot.AsyncTeleBot.send_animation
#: telebot.async_telebot.AsyncTeleBot.send_audio
#: telebot.async_telebot.AsyncTeleBot.send_chat_action
#: telebot.async_telebot.AsyncTeleBot.send_contact
#: telebot.async_telebot.AsyncTeleBot.send_dice
#: telebot.async_telebot.AsyncTeleBot.send_document
#: telebot.async_telebot.AsyncTeleBot.send_game
#: telebot.async_telebot.AsyncTeleBot.send_invoice
#: telebot.async_telebot.AsyncTeleBot.send_location
#: telebot.async_telebot.AsyncTeleBot.send_media_group
#: telebot.async_telebot.AsyncTeleBot.send_message
#: telebot.async_telebot.AsyncTeleBot.send_photo
#: telebot.async_telebot.AsyncTeleBot.send_poll
#: telebot.async_telebot.AsyncTeleBot.send_sticker
#: telebot.async_telebot.AsyncTeleBot.send_venue
#: telebot.async_telebot.AsyncTeleBot.send_video
#: telebot.async_telebot.AsyncTeleBot.send_video_note
#: telebot.async_telebot.AsyncTeleBot.send_voice
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title
#: telebot.async_telebot.AsyncTeleBot.set_chat_description
#: telebot.async_telebot.AsyncTeleBot.set_chat_menu_button
#: telebot.async_telebot.AsyncTeleBot.set_chat_permissions
#: telebot.async_telebot.AsyncTeleBot.set_chat_photo
#: telebot.async_telebot.AsyncTeleBot.set_chat_sticker_set
#: telebot.async_telebot.AsyncTeleBot.set_chat_title
#: telebot.async_telebot.AsyncTeleBot.set_custom_emoji_sticker_set_thumbnail
#: telebot.async_telebot.AsyncTeleBot.set_game_score
#: telebot.async_telebot.AsyncTeleBot.set_message_reaction
#: telebot.async_telebot.AsyncTeleBot.set_my_commands
#: telebot.async_telebot.AsyncTeleBot.set_my_default_administrator_rights
#: telebot.async_telebot.AsyncTeleBot.set_my_description
#: telebot.async_telebot.AsyncTeleBot.set_my_name
#: telebot.async_telebot.AsyncTeleBot.set_my_short_description
#: telebot.async_telebot.AsyncTeleBot.set_state
#: telebot.async_telebot.AsyncTeleBot.set_sticker_emoji_list
#: telebot.async_telebot.AsyncTeleBot.set_sticker_keywords
#: telebot.async_telebot.AsyncTeleBot.set_sticker_mask_position
#: telebot.async_telebot.AsyncTeleBot.set_sticker_position_in_set
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_title
#: telebot.async_telebot.AsyncTeleBot.set_update_listener
#: telebot.async_telebot.AsyncTeleBot.set_webhook
#: telebot.async_telebot.AsyncTeleBot.setup_middleware
#: telebot.async_telebot.AsyncTeleBot.shipping_query_handler
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location
#: telebot.async_telebot.AsyncTeleBot.stop_poll
#: telebot.async_telebot.AsyncTeleBot.unban_chat_member
#: telebot.async_telebot.AsyncTeleBot.unban_chat_sender_chat
#: telebot.async_telebot.AsyncTeleBot.unhide_general_forum_topic
#: telebot.async_telebot.AsyncTeleBot.unpin_all_chat_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_all_forum_topic_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_all_general_forum_topic_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_chat_message
#: telebot.async_telebot.AsyncTeleBot.upload_sticker_file
#: telebot.asyncio_filters.TextFilter
msgid "Parameters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:24
msgid "Token of a bot, obtained from @BotFather"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:27
msgid "Default parse mode, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:30
msgid "Offset used in get_updates, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:33
msgid ""
"Exception handler, which will handle the exception occured, defaults to "
"None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:36
msgid "Storage for states, defaults to StateMemoryStorage()"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:39
msgid "Default value for disable_web_page_preview, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:42
msgid "Default value for disable_notification, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:45
msgid "Default value for protect_content, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:48
msgid "Default value for allow_sending_without_reply, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot:51
msgid "Outputs colorful logs"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_custom_filter:1
msgid "Create custom filter."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_custom_filter:3
msgid "Example on checking the text of a message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_custom_filter:12
msgid "Class with check(message) method."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_custom_filter
#: telebot.async_telebot.AsyncTeleBot.add_data
#: telebot.async_telebot.AsyncTeleBot.add_sticker_to_set
#: telebot.async_telebot.AsyncTeleBot.answer_callback_query
#: telebot.async_telebot.AsyncTeleBot.answer_inline_query
#: telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query
#: telebot.async_telebot.AsyncTeleBot.answer_shipping_query
#: telebot.async_telebot.AsyncTeleBot.answer_web_app_query
#: telebot.async_telebot.AsyncTeleBot.approve_chat_join_request
#: telebot.async_telebot.AsyncTeleBot.ban_chat_member
#: telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat
#: telebot.async_telebot.AsyncTeleBot.callback_query_handler
#: telebot.async_telebot.AsyncTeleBot.channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.chat_join_request_handler
#: telebot.async_telebot.AsyncTeleBot.chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.chosen_inline_handler
#: telebot.async_telebot.AsyncTeleBot.close
#: telebot.async_telebot.AsyncTeleBot.close_forum_topic
#: telebot.async_telebot.AsyncTeleBot.copy_message
#: telebot.async_telebot.AsyncTeleBot.copy_messages
#: telebot.async_telebot.AsyncTeleBot.create_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.create_forum_topic
#: telebot.async_telebot.AsyncTeleBot.create_invoice_link
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request
#: telebot.async_telebot.AsyncTeleBot.delete_chat_photo
#: telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set
#: telebot.async_telebot.AsyncTeleBot.delete_forum_topic
#: telebot.async_telebot.AsyncTeleBot.delete_message
#: telebot.async_telebot.AsyncTeleBot.delete_messages
#: telebot.async_telebot.AsyncTeleBot.delete_my_commands
#: telebot.async_telebot.AsyncTeleBot.delete_state
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_set
#: telebot.async_telebot.AsyncTeleBot.delete_webhook
#: telebot.async_telebot.AsyncTeleBot.download_file
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.edit_forum_topic
#: telebot.async_telebot.AsyncTeleBot.edit_message_caption
#: telebot.async_telebot.AsyncTeleBot.edit_message_live_location
#: telebot.async_telebot.AsyncTeleBot.edit_message_media
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup
#: telebot.async_telebot.AsyncTeleBot.edit_message_text
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler
#: telebot.async_telebot.AsyncTeleBot.export_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.forward_message
#: telebot.async_telebot.AsyncTeleBot.forward_messages
#: telebot.async_telebot.AsyncTeleBot.get_chat
#: telebot.async_telebot.AsyncTeleBot.get_chat_administrators
#: telebot.async_telebot.AsyncTeleBot.get_chat_member
#: telebot.async_telebot.AsyncTeleBot.get_chat_member_count
#: telebot.async_telebot.AsyncTeleBot.get_chat_menu_button
#: telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers
#: telebot.async_telebot.AsyncTeleBot.get_file
#: telebot.async_telebot.AsyncTeleBot.get_file_url
#: telebot.async_telebot.AsyncTeleBot.get_forum_topic_icon_stickers
#: telebot.async_telebot.AsyncTeleBot.get_game_high_scores
#: telebot.async_telebot.AsyncTeleBot.get_my_commands
#: telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights
#: telebot.async_telebot.AsyncTeleBot.get_my_description
#: telebot.async_telebot.AsyncTeleBot.get_my_name
#: telebot.async_telebot.AsyncTeleBot.get_my_short_description
#: telebot.async_telebot.AsyncTeleBot.get_state
#: telebot.async_telebot.AsyncTeleBot.get_sticker_set
#: telebot.async_telebot.AsyncTeleBot.get_updates
#: telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts
#: telebot.async_telebot.AsyncTeleBot.get_user_profile_photos
#: telebot.async_telebot.AsyncTeleBot.get_webhook_info
#: telebot.async_telebot.AsyncTeleBot.infinity_polling
#: telebot.async_telebot.AsyncTeleBot.inline_handler
#: telebot.async_telebot.AsyncTeleBot.leave_chat
#: telebot.async_telebot.AsyncTeleBot.log_out
#: telebot.async_telebot.AsyncTeleBot.message_handler
#: telebot.async_telebot.AsyncTeleBot.message_reaction_count_handler
#: telebot.async_telebot.AsyncTeleBot.message_reaction_handler
#: telebot.async_telebot.AsyncTeleBot.my_chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.pin_chat_message
#: telebot.async_telebot.AsyncTeleBot.poll_answer_handler
#: telebot.async_telebot.AsyncTeleBot.poll_handler
#: telebot.async_telebot.AsyncTeleBot.polling
#: telebot.async_telebot.AsyncTeleBot.pre_checkout_query_handler
#: telebot.async_telebot.AsyncTeleBot.process_new_updates
#: telebot.async_telebot.AsyncTeleBot.promote_chat_member
#: telebot.async_telebot.AsyncTeleBot.register_callback_query_handler
#: telebot.async_telebot.AsyncTeleBot.register_channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.register_chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.register_chat_join_request_handler
#: telebot.async_telebot.AsyncTeleBot.register_chosen_inline_handler
#: telebot.async_telebot.AsyncTeleBot.register_edited_channel_post_handler
#: telebot.async_telebot.AsyncTeleBot.register_edited_message_handler
#: telebot.async_telebot.AsyncTeleBot.register_inline_handler
#: telebot.async_telebot.AsyncTeleBot.register_message_handler
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_count_handler
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_handler
#: telebot.async_telebot.AsyncTeleBot.register_my_chat_member_handler
#: telebot.async_telebot.AsyncTeleBot.register_poll_answer_handler
#: telebot.async_telebot.AsyncTeleBot.register_poll_handler
#: telebot.async_telebot.AsyncTeleBot.register_pre_checkout_query_handler
#: telebot.async_telebot.AsyncTeleBot.register_removed_chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.register_shipping_query_handler
#: telebot.async_telebot.AsyncTeleBot.removed_chat_boost_handler
#: telebot.async_telebot.AsyncTeleBot.reopen_forum_topic
#: telebot.async_telebot.AsyncTeleBot.reply_to
#: telebot.async_telebot.AsyncTeleBot.reset_data
#: telebot.async_telebot.AsyncTeleBot.restrict_chat_member
#: telebot.async_telebot.AsyncTeleBot.retrieve_data
#: telebot.async_telebot.AsyncTeleBot.revoke_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.run_webhooks
#: telebot.async_telebot.AsyncTeleBot.send_animation
#: telebot.async_telebot.AsyncTeleBot.send_audio
#: telebot.async_telebot.AsyncTeleBot.send_chat_action
#: telebot.async_telebot.AsyncTeleBot.send_contact
#: telebot.async_telebot.AsyncTeleBot.send_dice
#: telebot.async_telebot.AsyncTeleBot.send_document
#: telebot.async_telebot.AsyncTeleBot.send_game
#: telebot.async_telebot.AsyncTeleBot.send_invoice
#: telebot.async_telebot.AsyncTeleBot.send_location
#: telebot.async_telebot.AsyncTeleBot.send_media_group
#: telebot.async_telebot.AsyncTeleBot.send_message
#: telebot.async_telebot.AsyncTeleBot.send_photo
#: telebot.async_telebot.AsyncTeleBot.send_poll
#: telebot.async_telebot.AsyncTeleBot.send_sticker
#: telebot.async_telebot.AsyncTeleBot.send_venue
#: telebot.async_telebot.AsyncTeleBot.send_video
#: telebot.async_telebot.AsyncTeleBot.send_video_note
#: telebot.async_telebot.AsyncTeleBot.send_voice
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title
#: telebot.async_telebot.AsyncTeleBot.set_chat_description
#: telebot.async_telebot.AsyncTeleBot.set_chat_menu_button
#: telebot.async_telebot.AsyncTeleBot.set_chat_permissions
#: telebot.async_telebot.AsyncTeleBot.set_chat_photo
#: telebot.async_telebot.AsyncTeleBot.set_chat_sticker_set
#: telebot.async_telebot.AsyncTeleBot.set_chat_title
#: telebot.async_telebot.AsyncTeleBot.set_custom_emoji_sticker_set_thumbnail
#: telebot.async_telebot.AsyncTeleBot.set_game_score
#: telebot.async_telebot.AsyncTeleBot.set_message_reaction
#: telebot.async_telebot.AsyncTeleBot.set_my_commands
#: telebot.async_telebot.AsyncTeleBot.set_my_default_administrator_rights
#: telebot.async_telebot.AsyncTeleBot.set_my_description
#: telebot.async_telebot.AsyncTeleBot.set_my_name
#: telebot.async_telebot.AsyncTeleBot.set_my_short_description
#: telebot.async_telebot.AsyncTeleBot.set_state
#: telebot.async_telebot.AsyncTeleBot.set_sticker_emoji_list
#: telebot.async_telebot.AsyncTeleBot.set_sticker_keywords
#: telebot.async_telebot.AsyncTeleBot.set_sticker_mask_position
#: telebot.async_telebot.AsyncTeleBot.set_sticker_position_in_set
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_title
#: telebot.async_telebot.AsyncTeleBot.set_update_listener
#: telebot.async_telebot.AsyncTeleBot.set_webhook
#: telebot.async_telebot.AsyncTeleBot.setup_middleware
#: telebot.async_telebot.AsyncTeleBot.shipping_query_handler
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location
#: telebot.async_telebot.AsyncTeleBot.stop_poll
#: telebot.async_telebot.AsyncTeleBot.unban_chat_member
#: telebot.async_telebot.AsyncTeleBot.unban_chat_sender_chat
#: telebot.async_telebot.AsyncTeleBot.unpin_all_chat_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_all_forum_topic_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_all_general_forum_topic_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_chat_message
#: telebot.async_telebot.AsyncTeleBot.upload_sticker_file
#: telebot.asyncio_filters.TextFilter
#: telebot.ext.aio.webhooks.AsyncWebhookListener.run_app
msgid "Returns"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_custom_filter:15
#: telebot.async_telebot.AsyncTeleBot.add_data:10
#: telebot.async_telebot.AsyncTeleBot.callback_query_handler:9
#: telebot.async_telebot.AsyncTeleBot.channel_post_handler:17
#: telebot.async_telebot.AsyncTeleBot.chat_boost_handler:8
#: telebot.async_telebot.AsyncTeleBot.chat_join_request_handler:10
#: telebot.async_telebot.AsyncTeleBot.chat_member_handler:11
#: telebot.async_telebot.AsyncTeleBot.chosen_inline_handler:10
#: telebot.async_telebot.AsyncTeleBot.delete_state:9
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler:22
#: telebot.async_telebot.AsyncTeleBot.infinity_polling:35
#: telebot.async_telebot.AsyncTeleBot.inline_handler:9
#: telebot.async_telebot.AsyncTeleBot.my_chat_member_handler:10
#: telebot.async_telebot.AsyncTeleBot.poll_answer_handler:10
#: telebot.async_telebot.AsyncTeleBot.poll_handler:8
#: telebot.async_telebot.AsyncTeleBot.pre_checkout_query_handler:9
#: telebot.async_telebot.AsyncTeleBot.process_new_updates:8
#: telebot.async_telebot.AsyncTeleBot.register_callback_query_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_channel_post_handler:23
#: telebot.async_telebot.AsyncTeleBot.register_chat_boost_handler:13
#: telebot.async_telebot.AsyncTeleBot.register_chat_join_request_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_chosen_inline_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_edited_message_handler:26
#: telebot.async_telebot.AsyncTeleBot.register_message_handler:26
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_count_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_my_chat_member_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_poll_answer_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_poll_handler:14
#: telebot.async_telebot.AsyncTeleBot.register_removed_chat_boost_handler:13
#: telebot.async_telebot.AsyncTeleBot.register_shipping_query_handler:14
#: telebot.async_telebot.AsyncTeleBot.removed_chat_boost_handler:8
#: telebot.async_telebot.AsyncTeleBot.reset_data:9
#: telebot.async_telebot.AsyncTeleBot.set_state:18
#: telebot.async_telebot.AsyncTeleBot.set_update_listener:15
#: telebot.async_telebot.AsyncTeleBot.setup_middleware:10
#: telebot.async_telebot.AsyncTeleBot.shipping_query_handler:9
#: telebot.asyncio_filters.TextFilter:22
#: telebot.ext.aio.webhooks.AsyncWebhookListener.run_app:4
msgid "None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_data:1
msgid "Add data to states."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_data:3
#: telebot.async_telebot.AsyncTeleBot.delete_state:3
#: telebot.async_telebot.AsyncTeleBot.get_state:4
#: telebot.async_telebot.AsyncTeleBot.reset_data:3
#: telebot.async_telebot.AsyncTeleBot.set_state:9
msgid "User's identifier"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_data:6
#: telebot.async_telebot.AsyncTeleBot.delete_state:6
#: telebot.async_telebot.AsyncTeleBot.get_state:7
#: telebot.async_telebot.AsyncTeleBot.reset_data:6
#: telebot.async_telebot.AsyncTeleBot.set_state:15
msgid "Chat's identifier"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_data:9
msgid "Data to add"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:1
msgid ""
"Use this method to add a new sticker to a set created by the bot. The "
"format of the added sticker must match the format of the other stickers "
"in the set. Emoji sticker sets can have up to 200 stickers. Animated and "
"video sticker sets can have up to 50 stickers. Static sticker sets can "
"have up to 120 stickers. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:8
msgid ""
"**_sticker, mask_position, emojis parameters are deprecated, use stickers"
" instead"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:10
msgid "Telegram documentation: https://core.telegram.org/bots/api#addstickertoset"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:12
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:10
msgid "User identifier of created sticker set owner"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:15
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_set:3
#: telebot.async_telebot.AsyncTeleBot.get_sticker_set:5
#: telebot.async_telebot.AsyncTeleBot.set_custom_emoji_sticker_set_thumbnail:4
#: telebot.async_telebot.AsyncTeleBot.set_sticker_emoji_list:4
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail:6
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_title:4
msgid "Sticker set name"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:18
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:21
msgid "One or more emoji corresponding to the sticker"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:21
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:24
msgid ""
"PNG image with the sticker, must be up to 512 kilobytes in size, "
"dimensions must not exceed 512px, and either width or height must be "
"exactly 512px. Pass a file_id as a String to send a file that already "
"exists on the Telegram servers, pass an HTTP URL as a String for Telegram"
" to get a file from the Internet, or upload a new one using multipart"
"/form-data."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:26
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:29
msgid "TGS animation with the sticker, uploaded using multipart/form-data."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:29
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:32
msgid "WebM animation with the sticker, uploaded using multipart/form-data."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:32
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:42
msgid ""
"A JSON-serialized object for position where the mask should be placed on "
"faces"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:35
msgid ""
"A JSON-serialized list of 1-50 initial stickers to be added to the "
"sticker set"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:38
#: telebot.async_telebot.AsyncTeleBot.answer_callback_query:22
#: telebot.async_telebot.AsyncTeleBot.answer_inline_query:38
#: telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:21
#: telebot.async_telebot.AsyncTeleBot.answer_shipping_query:18
#: telebot.async_telebot.AsyncTeleBot.close_forum_topic:13
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:56
#: telebot.async_telebot.AsyncTeleBot.delete_forum_topic:13
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set:6
#: telebot.async_telebot.AsyncTeleBot.edit_forum_topic:22
#: telebot.async_telebot.AsyncTeleBot.reopen_forum_topic:13
#: telebot.async_telebot.AsyncTeleBot.set_sticker_keywords:11
#: telebot.async_telebot.AsyncTeleBot.set_sticker_position_in_set:11
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail:15
#: telebot.async_telebot.AsyncTeleBot.unpin_all_forum_topic_messages:13
#: telebot.async_telebot.AsyncTeleBot.unpin_all_general_forum_topic_messages:11
msgid "On success, True is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set
#: telebot.async_telebot.AsyncTeleBot.answer_callback_query
#: telebot.async_telebot.AsyncTeleBot.answer_inline_query
#: telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query
#: telebot.async_telebot.AsyncTeleBot.answer_shipping_query
#: telebot.async_telebot.AsyncTeleBot.answer_web_app_query
#: telebot.async_telebot.AsyncTeleBot.approve_chat_join_request
#: telebot.async_telebot.AsyncTeleBot.ban_chat_member
#: telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat
#: telebot.async_telebot.AsyncTeleBot.close_forum_topic
#: telebot.async_telebot.AsyncTeleBot.copy_message
#: telebot.async_telebot.AsyncTeleBot.copy_messages
#: telebot.async_telebot.AsyncTeleBot.create_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.create_forum_topic
#: telebot.async_telebot.AsyncTeleBot.create_invoice_link
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request
#: telebot.async_telebot.AsyncTeleBot.delete_chat_photo
#: telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set
#: telebot.async_telebot.AsyncTeleBot.delete_forum_topic
#: telebot.async_telebot.AsyncTeleBot.delete_message
#: telebot.async_telebot.AsyncTeleBot.delete_my_commands
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_set
#: telebot.async_telebot.AsyncTeleBot.delete_webhook
#: telebot.async_telebot.AsyncTeleBot.download_file
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.edit_forum_topic
#: telebot.async_telebot.AsyncTeleBot.edit_message_caption
#: telebot.async_telebot.AsyncTeleBot.edit_message_live_location
#: telebot.async_telebot.AsyncTeleBot.edit_message_media
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup
#: telebot.async_telebot.AsyncTeleBot.edit_message_text
#: telebot.async_telebot.AsyncTeleBot.export_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.forward_message
#: telebot.async_telebot.AsyncTeleBot.forward_messages
#: telebot.async_telebot.AsyncTeleBot.get_chat
#: telebot.async_telebot.AsyncTeleBot.get_chat_administrators
#: telebot.async_telebot.AsyncTeleBot.get_chat_member
#: telebot.async_telebot.AsyncTeleBot.get_chat_member_count
#: telebot.async_telebot.AsyncTeleBot.get_chat_menu_button
#: telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers
#: telebot.async_telebot.AsyncTeleBot.get_file_url
#: telebot.async_telebot.AsyncTeleBot.get_forum_topic_icon_stickers
#: telebot.async_telebot.AsyncTeleBot.get_game_high_scores
#: telebot.async_telebot.AsyncTeleBot.get_my_commands
#: telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights
#: telebot.async_telebot.AsyncTeleBot.get_state
#: telebot.async_telebot.AsyncTeleBot.get_sticker_set
#: telebot.async_telebot.AsyncTeleBot.get_updates
#: telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts
#: telebot.async_telebot.AsyncTeleBot.get_user_profile_photos
#: telebot.async_telebot.AsyncTeleBot.get_webhook_info
#: telebot.async_telebot.AsyncTeleBot.log_out
#: telebot.async_telebot.AsyncTeleBot.pin_chat_message
#: telebot.async_telebot.AsyncTeleBot.promote_chat_member
#: telebot.async_telebot.AsyncTeleBot.reopen_forum_topic
#: telebot.async_telebot.AsyncTeleBot.reply_to
#: telebot.async_telebot.AsyncTeleBot.restrict_chat_member
#: telebot.async_telebot.AsyncTeleBot.retrieve_data
#: telebot.async_telebot.AsyncTeleBot.revoke_chat_invite_link
#: telebot.async_telebot.AsyncTeleBot.send_animation
#: telebot.async_telebot.AsyncTeleBot.send_audio
#: telebot.async_telebot.AsyncTeleBot.send_chat_action
#: telebot.async_telebot.AsyncTeleBot.send_contact
#: telebot.async_telebot.AsyncTeleBot.send_dice
#: telebot.async_telebot.AsyncTeleBot.send_document
#: telebot.async_telebot.AsyncTeleBot.send_game
#: telebot.async_telebot.AsyncTeleBot.send_invoice
#: telebot.async_telebot.AsyncTeleBot.send_location
#: telebot.async_telebot.AsyncTeleBot.send_media_group
#: telebot.async_telebot.AsyncTeleBot.send_message
#: telebot.async_telebot.AsyncTeleBot.send_photo
#: telebot.async_telebot.AsyncTeleBot.send_poll
#: telebot.async_telebot.AsyncTeleBot.send_sticker
#: telebot.async_telebot.AsyncTeleBot.send_venue
#: telebot.async_telebot.AsyncTeleBot.send_video
#: telebot.async_telebot.AsyncTeleBot.send_video_note
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title
#: telebot.async_telebot.AsyncTeleBot.set_chat_description
#: telebot.async_telebot.AsyncTeleBot.set_chat_menu_button
#: telebot.async_telebot.AsyncTeleBot.set_chat_permissions
#: telebot.async_telebot.AsyncTeleBot.set_chat_photo
#: telebot.async_telebot.AsyncTeleBot.set_chat_sticker_set
#: telebot.async_telebot.AsyncTeleBot.set_chat_title
#: telebot.async_telebot.AsyncTeleBot.set_custom_emoji_sticker_set_thumbnail
#: telebot.async_telebot.AsyncTeleBot.set_game_score
#: telebot.async_telebot.AsyncTeleBot.set_my_commands
#: telebot.async_telebot.AsyncTeleBot.set_my_default_administrator_rights
#: telebot.async_telebot.AsyncTeleBot.set_sticker_emoji_list
#: telebot.async_telebot.AsyncTeleBot.set_sticker_keywords
#: telebot.async_telebot.AsyncTeleBot.set_sticker_mask_position
#: telebot.async_telebot.AsyncTeleBot.set_sticker_position_in_set
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_title
#: telebot.async_telebot.AsyncTeleBot.set_webhook
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location
#: telebot.async_telebot.AsyncTeleBot.stop_poll
#: telebot.async_telebot.AsyncTeleBot.unban_chat_member
#: telebot.async_telebot.AsyncTeleBot.unban_chat_sender_chat
#: telebot.async_telebot.AsyncTeleBot.unpin_all_chat_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_all_forum_topic_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_all_general_forum_topic_messages
#: telebot.async_telebot.AsyncTeleBot.unpin_chat_message
#: telebot.async_telebot.AsyncTeleBot.upload_sticker_file
msgid "Return type"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.add_sticker_to_set:39
#: telebot.async_telebot.AsyncTeleBot.answer_callback_query:23
#: telebot.async_telebot.AsyncTeleBot.answer_inline_query:39
#: telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:22
#: telebot.async_telebot.AsyncTeleBot.answer_shipping_query:19
#: telebot.async_telebot.AsyncTeleBot.approve_chat_join_request:15
#: telebot.async_telebot.AsyncTeleBot.ban_chat_member:25
#: telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat:17
#: telebot.async_telebot.AsyncTeleBot.close:9
#: telebot.async_telebot.AsyncTeleBot.close_forum_topic:14
#: telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:57
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request:15
#: telebot.async_telebot.AsyncTeleBot.delete_chat_photo:13
#: telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set:11
#: telebot.async_telebot.AsyncTeleBot.delete_forum_topic:14
#: telebot.async_telebot.AsyncTeleBot.delete_message:23
#: telebot.async_telebot.AsyncTeleBot.delete_my_commands:17
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set:7
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_set:7
#: telebot.async_telebot.AsyncTeleBot.delete_webhook:13
#: telebot.async_telebot.AsyncTeleBot.edit_forum_topic:23
#: telebot.async_telebot.AsyncTeleBot.leave_chat:8
#: telebot.async_telebot.AsyncTeleBot.log_out:11
#: telebot.async_telebot.AsyncTeleBot.pin_chat_message:19
#: telebot.async_telebot.AsyncTeleBot.promote_chat_member:70
#: telebot.async_telebot.AsyncTeleBot.reopen_forum_topic:14
#: telebot.async_telebot.AsyncTeleBot.restrict_chat_member:61
#: telebot.async_telebot.AsyncTeleBot.send_chat_action:26
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title:18
#: telebot.async_telebot.AsyncTeleBot.set_chat_description:14
#: telebot.async_telebot.AsyncTeleBot.set_chat_menu_button:15
#: telebot.async_telebot.AsyncTeleBot.set_chat_permissions:21
#: telebot.async_telebot.AsyncTeleBot.set_chat_photo:16
#: telebot.async_telebot.AsyncTeleBot.set_chat_title:17
#: telebot.async_telebot.AsyncTeleBot.set_custom_emoji_sticker_set_thumbnail:11
#: telebot.async_telebot.AsyncTeleBot.set_message_reaction:18
#: telebot.async_telebot.AsyncTeleBot.set_my_commands:18
#: telebot.async_telebot.AsyncTeleBot.set_my_default_administrator_rights:18
#: telebot.async_telebot.AsyncTeleBot.set_sticker_emoji_list:11
#: telebot.async_telebot.AsyncTeleBot.set_sticker_keywords:12
#: telebot.async_telebot.AsyncTeleBot.set_sticker_mask_position:12
#: telebot.async_telebot.AsyncTeleBot.set_sticker_position_in_set:12
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail:16
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_title:11
#: telebot.async_telebot.AsyncTeleBot.unban_chat_member:20
#: telebot.async_telebot.AsyncTeleBot.unban_chat_sender_chat:15
#: telebot.async_telebot.AsyncTeleBot.unpin_all_chat_messages:12
#: telebot.async_telebot.AsyncTeleBot.unpin_all_forum_topic_messages:14
#: telebot.async_telebot.AsyncTeleBot.unpin_all_general_forum_topic_messages:12
#: telebot.async_telebot.AsyncTeleBot.unpin_chat_message:15
msgid ":obj:`bool`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:1
msgid ""
"Use this method to send answers to callback queries sent from inline "
"keyboards. The answer will be displayed to the user as a notification at "
"the top of the chat screen or as an alert."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#answercallbackquery"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:6
#: telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:10
#: telebot.async_telebot.AsyncTeleBot.answer_shipping_query:5
#: telebot.async_telebot.AsyncTeleBot.answer_web_app_query:8
msgid "Unique identifier for the query to be answered"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:9
msgid ""
"Text of the notification. If not specified, nothing will be shown to the "
"user, 0-200 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:12
msgid ""
"If True, an alert will be shown by the client instead of a notification "
"at the top of the chat screen. Defaults to false."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:15
msgid ""
"URL that will be opened by the user's client. If you have created a Game "
"and accepted the conditions via @BotFather, specify the URL that opens "
"your game - note that this will only work if the query comes from a "
"callback_game button."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_callback_query:19
msgid ""
"The maximum amount of time in seconds that the result of the callback "
"query may be cached client-side. Telegram apps will support caching "
"starting in version 3.14. Defaults to 0."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:1
msgid ""
"Use this method to send answers to an inline query. On success, True is "
"returned. No more than 50 results per query are allowed."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#answerinlinequery"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:6
msgid "Unique identifier for the answered query"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:9
msgid "Array of results for the inline query"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:12
msgid ""
"The maximum amount of time in seconds that the result of the inline query"
" may be cached on the server."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:16
msgid ""
"Pass True, if results may be cached on the server side only for the user "
"that sent the query."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:20
msgid ""
"Pass the offset that a client should send in the next query with the same"
" text to receive more results."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:24
msgid ""
"Deep-linking parameter for the /start message sent to the bot when user "
"presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - "
"are allowed. Example: An inline bot that sends YouTube videos can ask the"
" user to connect the bot to their YouTube account to adapt search results"
" accordingly. To do this, it displays a 'Connect your YouTube account' "
"button above the results, or even before showing any. The user presses "
"the button, switches to a private chat with the bot and, in doing so, "
"passes a start parameter that instructs the bot to return an OAuth link. "
"Once done, the bot can offer a switch_inline button so that the user can "
"easily return to the chat where they wanted to use the bot's inline "
"capabilities."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:32
msgid ""
"Parameter for the start message sent to the bot when user presses the "
"switch button"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_inline_query:35
msgid ""
"A JSON-serialized object describing a button to be shown above inline "
"query results"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:1
msgid ""
"Once the user has confirmed their payment and shipping details, the Bot "
"API sends the final confirmation in the form of an Update with the field "
"pre_checkout_query. Use this method to respond to such pre-checkout "
"queries. On success, True is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:6
msgid ""
"The Bot API must receive an answer within 10 seconds after the pre-"
"checkout query was sent."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:8
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#answerprecheckoutquery"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:13
msgid ""
"Specify True if everything is alright (goods are available, etc.) and the"
" bot is ready to proceed with the order. Use False if there are any "
"problems."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_pre_checkout_query:16
msgid ""
"Required if ok is False. Error message in human readable form that "
"explains the reason for failure to proceed with the checkout (e.g. "
"\"Sorry, somebody just bought the last of our amazing black T-shirts "
"while you were busy filling out your payment details. Please choose a "
"different color or garment!\"). Telegram will display this message to the"
" user."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_shipping_query:1
msgid "Asks for an answer to a shipping question."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_shipping_query:3
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#answershippingquery"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_shipping_query:8
msgid ""
"Specify True if delivery to the specified address is possible and False "
"if there are any problems (for example, if delivery to the specified "
"address is not possible)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_shipping_query:11
msgid ""
"Required if ok is True. A JSON-serialized array of available shipping "
"options."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_shipping_query:14
msgid ""
"Required if ok is False. Error message in human readable form that "
"explains why it is impossible to complete the order (e.g. \"Sorry, "
"delivery to your desired address is unavailable'). Telegram will display "
"this message to the user."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_web_app_query:1
msgid ""
"Use this method to set the result of an interaction with a Web App and "
"send a corresponding message on behalf of the user to the chat from which"
" the query originated. On success, a SentWebAppMessage object is "
"returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_web_app_query:6
msgid ""
"Telegram Documentation: "
"https://core.telegram.org/bots/api#answerwebappquery"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_web_app_query:11
msgid "A JSON-serialized object describing the message to be sent"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_web_app_query:14
msgid "On success, a SentWebAppMessage object is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.answer_web_app_query:15
msgid ":class:`telebot.types.SentWebAppMessage`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.approve_chat_join_request:1
msgid ""
"Use this method to approve a chat join request. The bot must be an "
"administrator in the chat for this to work and must have the "
"can_invite_users administrator right. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.approve_chat_join_request:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#approvechatjoinrequest"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.approve_chat_join_request:7
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request:7
#: telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set:7
#: telebot.async_telebot.AsyncTeleBot.get_chat_member:5
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title:6
#: telebot.async_telebot.AsyncTeleBot.set_chat_permissions:7
#: telebot.async_telebot.AsyncTeleBot.set_chat_sticker_set:7
msgid ""
"Unique identifier for the target chat or username of the target "
"supergroup (in the format @supergroupusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.approve_chat_join_request:11
#: telebot.async_telebot.AsyncTeleBot.ban_chat_member:12
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request:11
#: telebot.async_telebot.AsyncTeleBot.get_chat_member:8
#: telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts:8
#: telebot.async_telebot.AsyncTeleBot.get_user_profile_photos:6
#: telebot.async_telebot.AsyncTeleBot.promote_chat_member:11
#: telebot.async_telebot.AsyncTeleBot.restrict_chat_member:14
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title:10
#: telebot.async_telebot.AsyncTeleBot.unban_chat_member:13
msgid "Unique identifier of the target user"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.approve_chat_join_request:14
#: telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat:16
#: telebot.async_telebot.AsyncTeleBot.decline_chat_join_request:14
#: telebot.async_telebot.AsyncTeleBot.delete_chat_photo:12
#: telebot.async_telebot.AsyncTeleBot.delete_my_commands:16
#: telebot.async_telebot.AsyncTeleBot.log_out:10
#: telebot.async_telebot.AsyncTeleBot.pin_chat_message:18
#: telebot.async_telebot.AsyncTeleBot.promote_chat_member:69
#: telebot.async_telebot.AsyncTeleBot.set_chat_administrator_custom_title:17
#: telebot.async_telebot.AsyncTeleBot.set_chat_description:13
#: telebot.async_telebot.AsyncTeleBot.set_chat_menu_button:14
#: telebot.async_telebot.AsyncTeleBot.set_chat_photo:15
#: telebot.async_telebot.AsyncTeleBot.set_chat_title:16
#: telebot.async_telebot.AsyncTeleBot.set_my_commands:17
#: telebot.async_telebot.AsyncTeleBot.set_my_default_administrator_rights:17
#: telebot.async_telebot.AsyncTeleBot.set_my_description:12
#: telebot.async_telebot.AsyncTeleBot.set_my_name:12
#: telebot.async_telebot.AsyncTeleBot.set_my_short_description:12
#: telebot.async_telebot.AsyncTeleBot.set_webhook:46
#: telebot.async_telebot.AsyncTeleBot.unban_chat_sender_chat:14
#: telebot.async_telebot.AsyncTeleBot.unpin_all_chat_messages:11
#: telebot.async_telebot.AsyncTeleBot.unpin_chat_message:14
msgid "True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_member:1
msgid ""
"Use this method to ban a user in a group, a supergroup or a channel. In "
"the case of supergroups and channels, the user will not be able to return"
" to the chat on their own using invite links, etc., unless unbanned "
"first. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_member:6
msgid "Telegram documentation: https://core.telegram.org/bots/api#banchatmember"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_member:8
#: telebot.async_telebot.AsyncTeleBot.restrict_chat_member:10
msgid ""
"Unique identifier for the target group or username of the target "
"supergroup or channel (in the format @channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_member:15
msgid ""
"Date when the user will be unbanned, unix time. If user is banned for "
"more than 366 days or less than 30 seconds from the current time they are"
" considered to be banned forever"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_member:19
msgid ""
"Bool: Pass True to delete all messages from the chat for the user that is"
" being removed. If False, the user will be able to see messages in the "
"group that were sent before the user was removed. Always True for "
"supergroups and channels."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_member:24
#: telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set:10
#: telebot.async_telebot.AsyncTeleBot.delete_message:22
#: telebot.async_telebot.AsyncTeleBot.delete_messages:14
#: telebot.async_telebot.AsyncTeleBot.delete_sticker_set:6
#: telebot.async_telebot.AsyncTeleBot.delete_webhook:12
#: telebot.async_telebot.AsyncTeleBot.send_chat_action:25
#: telebot.async_telebot.AsyncTeleBot.set_custom_emoji_sticker_set_thumbnail:10
#: telebot.async_telebot.AsyncTeleBot.set_sticker_emoji_list:10
#: telebot.async_telebot.AsyncTeleBot.set_sticker_mask_position:11
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_title:10
msgid "Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat:1
msgid ""
"Use this method to ban a channel chat in a supergroup or a channel. The "
"owner of the chat will not be able to send messages and join live streams"
" on behalf of the chat, unless it is unbanned first. The bot must be an "
"administrator in the supergroup or channel for this to work and must have"
" the appropriate administrator rights. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat:8
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#banchatsenderchat"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat:10
#: telebot.async_telebot.AsyncTeleBot.close_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.close_general_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.copy_message:5
#: telebot.async_telebot.AsyncTeleBot.copy_messages:3
#: telebot.async_telebot.AsyncTeleBot.create_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.delete_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.delete_message:13
#: telebot.async_telebot.AsyncTeleBot.delete_messages:8
#: telebot.async_telebot.AsyncTeleBot.edit_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.edit_general_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.edit_message_live_location:13
#: telebot.async_telebot.AsyncTeleBot.forward_message:8
#: telebot.async_telebot.AsyncTeleBot.forward_messages:3
#: telebot.async_telebot.AsyncTeleBot.hide_general_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.pin_chat_message:7
#: telebot.async_telebot.AsyncTeleBot.reopen_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.reopen_general_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.send_animation:6
#: telebot.async_telebot.AsyncTeleBot.send_audio:9
#: telebot.async_telebot.AsyncTeleBot.send_dice:5
#: telebot.async_telebot.AsyncTeleBot.send_document:5
#: telebot.async_telebot.AsyncTeleBot.send_game:5
#: telebot.async_telebot.AsyncTeleBot.send_location:5
#: telebot.async_telebot.AsyncTeleBot.send_media_group:6
#: telebot.async_telebot.AsyncTeleBot.send_message:9
#: telebot.async_telebot.AsyncTeleBot.send_photo:5
#: telebot.async_telebot.AsyncTeleBot.send_sticker:6
#: telebot.async_telebot.AsyncTeleBot.send_video:5
#: telebot.async_telebot.AsyncTeleBot.send_video_note:6
#: telebot.async_telebot.AsyncTeleBot.send_voice:7
#: telebot.async_telebot.AsyncTeleBot.set_chat_description:6
#: telebot.async_telebot.AsyncTeleBot.set_chat_title:9
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location:6
#: telebot.async_telebot.AsyncTeleBot.unban_chat_sender_chat:8
#: telebot.async_telebot.AsyncTeleBot.unhide_general_forum_topic:7
#: telebot.async_telebot.AsyncTeleBot.unpin_all_forum_topic_messages:7
#: telebot.async_telebot.AsyncTeleBot.unpin_chat_message:7
msgid ""
"Unique identifier for the target chat or username of the target channel "
"(in the format @channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.ban_chat_sender_chat:13
msgid "Unique identifier of the target sender chat"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.callback_query_handler:1
msgid ""
"Handles new incoming callback query. As a parameter to the decorator "
"function, it passes :class:`telebot.types.CallbackQuery` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.callback_query_handler:4
#: telebot.async_telebot.AsyncTeleBot.channel_post_handler:10
#: telebot.async_telebot.AsyncTeleBot.chat_boost_handler:4
#: telebot.async_telebot.AsyncTeleBot.chat_join_request_handler:5
#: telebot.async_telebot.AsyncTeleBot.chat_member_handler:6
#: telebot.async_telebot.AsyncTeleBot.chosen_inline_handler:5
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler:10
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler:11
#: telebot.async_telebot.AsyncTeleBot.inline_handler:4
#: telebot.async_telebot.AsyncTeleBot.message_reaction_count_handler:4
#: telebot.async_telebot.AsyncTeleBot.message_reaction_handler:4
#: telebot.async_telebot.AsyncTeleBot.my_chat_member_handler:5
#: telebot.async_telebot.AsyncTeleBot.poll_answer_handler:5
#: telebot.async_telebot.AsyncTeleBot.poll_handler:4
#: telebot.async_telebot.AsyncTeleBot.pre_checkout_query_handler:4
#: telebot.async_telebot.AsyncTeleBot.register_callback_query_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_channel_post_handler:15
#: telebot.async_telebot.AsyncTeleBot.register_chat_boost_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_chat_join_request_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_chat_member_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_chosen_inline_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_edited_channel_post_handler:15
#: telebot.async_telebot.AsyncTeleBot.register_edited_message_handler:15
#: telebot.async_telebot.AsyncTeleBot.register_inline_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_message_handler:15
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_count_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_my_chat_member_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_poll_answer_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_poll_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_pre_checkout_query_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_removed_chat_boost_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_shipping_query_handler:6
#: telebot.async_telebot.AsyncTeleBot.removed_chat_boost_handler:4
#: telebot.async_telebot.AsyncTeleBot.shipping_query_handler:4
msgid "Function executed as a filter"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.callback_query_handler:7
#: telebot.async_telebot.AsyncTeleBot.channel_post_handler:16
#: telebot.async_telebot.AsyncTeleBot.chat_boost_handler:7
#: telebot.async_telebot.AsyncTeleBot.chat_join_request_handler:8
#: telebot.async_telebot.AsyncTeleBot.chat_member_handler:9
#: telebot.async_telebot.AsyncTeleBot.chosen_inline_handler:8
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler:16
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler:20
#: telebot.async_telebot.AsyncTeleBot.inline_handler:7
#: telebot.async_telebot.AsyncTeleBot.message_handler:50
#: telebot.async_telebot.AsyncTeleBot.message_reaction_count_handler:7
#: telebot.async_telebot.AsyncTeleBot.message_reaction_handler:7
#: telebot.async_telebot.AsyncTeleBot.my_chat_member_handler:8
#: telebot.async_telebot.AsyncTeleBot.poll_answer_handler:8
#: telebot.async_telebot.AsyncTeleBot.poll_handler:7
#: telebot.async_telebot.AsyncTeleBot.pre_checkout_query_handler:7
#: telebot.async_telebot.AsyncTeleBot.register_callback_query_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_channel_post_handler:21
#: telebot.async_telebot.AsyncTeleBot.register_chat_boost_handler:11
#: telebot.async_telebot.AsyncTeleBot.register_chat_join_request_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_chat_member_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_chosen_inline_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_edited_channel_post_handler:21
#: telebot.async_telebot.AsyncTeleBot.register_edited_message_handler:24
#: telebot.async_telebot.AsyncTeleBot.register_inline_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_message_handler:24
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_count_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_message_reaction_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_my_chat_member_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_poll_answer_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_poll_handler:12
#: telebot.async_telebot.AsyncTeleBot.register_pre_checkout_query_handler:11
#: telebot.async_telebot.AsyncTeleBot.register_removed_chat_boost_handler:11
#: telebot.async_telebot.AsyncTeleBot.register_shipping_query_handler:12
#: telebot.async_telebot.AsyncTeleBot.removed_chat_boost_handler:7
#: telebot.async_telebot.AsyncTeleBot.shipping_query_handler:7
msgid "Optional keyword arguments(custom filters)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.channel_post_handler:1
msgid ""
"Handles new incoming channel post of any kind - text, photo, sticker, "
"etc. As a parameter to the decorator function, it passes "
":class:`telebot.types.Message` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.channel_post_handler:4
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler:4
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler:5
#: telebot.async_telebot.AsyncTeleBot.message_handler:34
msgid "Optional list of strings (commands to handle)."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.channel_post_handler:7
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler:7
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler:8
#: telebot.async_telebot.AsyncTeleBot.message_handler:37
msgid "Optional regular expression."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.channel_post_handler:13
#: telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler:13
#: telebot.async_telebot.AsyncTeleBot.edited_message_handler:14
#: telebot.async_telebot.AsyncTeleBot.message_handler:44
#: telebot.async_telebot.AsyncTeleBot.register_channel_post_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_edited_channel_post_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_edited_message_handler:6
#: telebot.async_telebot.AsyncTeleBot.register_message_handler:6
msgid "Supported message content types. Must be a list. Defaults to ['text']."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.chat_boost_handler:1
msgid ""
"Handles new incoming chat boost state. it passes "
":class:`telebot.types.ChatBoostUpdated` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.chat_join_request_handler:1
msgid ""
"Handles a request to join the chat has been sent. The bot must have the "
"can_invite_users administrator right in the chat to receive these "
"updates. As a parameter to the decorator function, it passes "
":class:`telebot.types.ChatJoinRequest` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.chat_member_handler:1
msgid ""
"Handles update in a status of a user in a chat. The bot must be an "
"administrator in the chat and must explicitly specify “chat_member” in "
"the list of allowed_updates to receive these updates. As a parameter to "
"the decorator function, it passes "
":class:`telebot.types.ChatMemberUpdated` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.chosen_inline_handler:1
msgid ""
"The result of an inline query that was chosen by a user and sent to their"
" chat partner. Please see our documentation on the feedback collecting "
"for details on how to enable these updates for your bot. As a parameter "
"to the decorator function, it passes "
":class:`telebot.types.ChosenInlineResult` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close:1
msgid ""
"Use this method to close the bot instance before moving it from one local"
" server to another. You need to delete the webhook before calling this "
"method to ensure that the bot isn't launched again after server restart. "
"The method will return error 429 in the first 10 minutes after the bot is"
" launched. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close:7
msgid "Telegram documentation: https://core.telegram.org/bots/api#close"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close_forum_topic:1
msgid ""
"Use this method to close an open topic in a forum supergroup chat. The "
"bot must be an administrator in the chat for this to work and must have "
"the can_manage_topics administrator rights, unless it is the creator of "
"the topic. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close_forum_topic:5
msgid "Telegram documentation: https://core.telegram.org/bots/api#closeforumtopic"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close_forum_topic:10
msgid "Identifier of the topic to close"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close_general_forum_topic:1
msgid ""
"Use this method to close the 'General' topic in a forum supergroup chat. "
"The bot must be an administrator in the chat for this to work and must "
"have can_manage_topics administrator rights. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close_general_forum_topic:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#closegeneralforumtopic"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.close_session:1
msgid ""
"Closes existing session of aiohttp. Use this function if you stop "
"polling/webhooks."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:1
#: telebot.async_telebot.AsyncTeleBot.copy_messages:1
msgid "Use this method to copy messages of any kind."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#copymessage"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:8
#: telebot.async_telebot.AsyncTeleBot.copy_messages:6
#: telebot.async_telebot.AsyncTeleBot.forward_message:11
#: telebot.async_telebot.AsyncTeleBot.forward_messages:6
msgid ""
"Unique identifier for the chat where the original message was sent (or "
"channel username in the format @channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:10
#: telebot.async_telebot.AsyncTeleBot.forward_message:14
msgid "Message identifier in the chat specified in from_chat_id"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:13
msgid ""
"New caption for media, 0-1024 characters after entities parsing. If not "
"specified, the original caption is kept"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:16
msgid "Mode for parsing entities in the new caption."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:19
msgid ""
"A JSON-serialized list of special entities that appear in the new "
"caption, which can be specified instead of parse_mode"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:22
#: telebot.async_telebot.AsyncTeleBot.send_animation:45
#: telebot.async_telebot.AsyncTeleBot.send_audio:39
#: telebot.async_telebot.AsyncTeleBot.send_contact:20
#: telebot.async_telebot.AsyncTeleBot.send_dice:12
#: telebot.async_telebot.AsyncTeleBot.send_document:26
#: telebot.async_telebot.AsyncTeleBot.send_game:11
#: telebot.async_telebot.AsyncTeleBot.send_invoice:67
#: telebot.async_telebot.AsyncTeleBot.send_location:25
#: telebot.async_telebot.AsyncTeleBot.send_message:24
#: telebot.async_telebot.AsyncTeleBot.send_photo:22
#: telebot.async_telebot.AsyncTeleBot.send_poll:44
#: telebot.async_telebot.AsyncTeleBot.send_venue:27
#: telebot.async_telebot.AsyncTeleBot.send_video:35
#: telebot.async_telebot.AsyncTeleBot.send_video_note:27
#: telebot.async_telebot.AsyncTeleBot.send_voice:31
msgid ""
"Sends the message silently. Users will receive a notification with no "
"sound."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:25
#: telebot.async_telebot.AsyncTeleBot.send_animation:34
#: telebot.async_telebot.AsyncTeleBot.send_audio:57
#: telebot.async_telebot.AsyncTeleBot.send_contact:38
#: telebot.async_telebot.AsyncTeleBot.send_document:50
#: telebot.async_telebot.AsyncTeleBot.send_invoice:95
#: telebot.async_telebot.AsyncTeleBot.send_location:43
#: telebot.async_telebot.AsyncTeleBot.send_media_group:15
#: telebot.async_telebot.AsyncTeleBot.send_photo:25
#: telebot.async_telebot.AsyncTeleBot.send_poll:64
#: telebot.async_telebot.AsyncTeleBot.send_sticker:30
#: telebot.async_telebot.AsyncTeleBot.send_venue:51
#: telebot.async_telebot.AsyncTeleBot.send_video:38
#: telebot.async_telebot.AsyncTeleBot.send_video_note:42
#: telebot.async_telebot.AsyncTeleBot.send_voice:43
msgid "Protects the contents of the sent message from forwarding and saving"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:28
#: telebot.async_telebot.AsyncTeleBot.send_animation:37
#: telebot.async_telebot.AsyncTeleBot.send_audio:29
#: telebot.async_telebot.AsyncTeleBot.send_contact:23
#: telebot.async_telebot.AsyncTeleBot.send_dice:15
#: telebot.async_telebot.AsyncTeleBot.send_document:12
#: telebot.async_telebot.AsyncTeleBot.send_game:14
#: telebot.async_telebot.AsyncTeleBot.send_invoice:70
#: telebot.async_telebot.AsyncTeleBot.send_location:17
#: telebot.async_telebot.AsyncTeleBot.send_media_group:18
#: telebot.async_telebot.AsyncTeleBot.send_message:30
#: telebot.async_telebot.AsyncTeleBot.send_photo:28
#: telebot.async_telebot.AsyncTeleBot.send_poll:47
#: telebot.async_telebot.AsyncTeleBot.send_sticker:13
#: telebot.async_telebot.AsyncTeleBot.send_venue:30
#: telebot.async_telebot.AsyncTeleBot.send_video:41
#: telebot.async_telebot.AsyncTeleBot.send_video_note:19
#: telebot.async_telebot.AsyncTeleBot.send_voice:20
msgid "If the message is a reply, ID of the original message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:31
#: telebot.async_telebot.AsyncTeleBot.send_animation:54
#: telebot.async_telebot.AsyncTeleBot.send_audio:54
#: telebot.async_telebot.AsyncTeleBot.send_dice:26
#: telebot.async_telebot.AsyncTeleBot.send_document:38
#: telebot.async_telebot.AsyncTeleBot.send_invoice:84
#: telebot.async_telebot.AsyncTeleBot.send_location:40
#: telebot.async_telebot.AsyncTeleBot.send_media_group:24
#: telebot.async_telebot.AsyncTeleBot.send_message:33
#: telebot.async_telebot.AsyncTeleBot.send_photo:31
#: telebot.async_telebot.AsyncTeleBot.send_sticker:27
#: telebot.async_telebot.AsyncTeleBot.send_video:44
#: telebot.async_telebot.AsyncTeleBot.send_video_note:39
#: telebot.async_telebot.AsyncTeleBot.send_voice:40
msgid ""
"Pass True, if the message should be sent even if the specified replied-to"
" message is not found"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:34
#: telebot.async_telebot.AsyncTeleBot.send_animation:40
#: telebot.async_telebot.AsyncTeleBot.send_contact:26
#: telebot.async_telebot.AsyncTeleBot.send_dice:18
#: telebot.async_telebot.AsyncTeleBot.send_document:18
#: telebot.async_telebot.AsyncTeleBot.send_game:17
#: telebot.async_telebot.AsyncTeleBot.send_location:20
#: telebot.async_telebot.AsyncTeleBot.send_message:36
#: telebot.async_telebot.AsyncTeleBot.send_photo:34
#: telebot.async_telebot.AsyncTeleBot.send_poll:53
#: telebot.async_telebot.AsyncTeleBot.send_sticker:16
#: telebot.async_telebot.AsyncTeleBot.send_venue:33
#: telebot.async_telebot.AsyncTeleBot.send_video:47
#: telebot.async_telebot.AsyncTeleBot.send_video_note:22
#: telebot.async_telebot.AsyncTeleBot.send_voice:23
msgid ""
"Additional interface options. A JSON-serialized object for an inline "
"keyboard, custom reply keyboard, instructions to remove reply keyboard or"
" to force a reply from the user."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:39
#: telebot.async_telebot.AsyncTeleBot.delete_message:19
#: telebot.async_telebot.AsyncTeleBot.edit_message_live_location:23
#: telebot.async_telebot.AsyncTeleBot.forward_message:20
#: telebot.async_telebot.AsyncTeleBot.send_animation:48
#: telebot.async_telebot.AsyncTeleBot.send_audio:42
#: telebot.async_telebot.AsyncTeleBot.send_chat_action:19
#: telebot.async_telebot.AsyncTeleBot.send_contact:31
#: telebot.async_telebot.AsyncTeleBot.send_dice:23
#: telebot.async_telebot.AsyncTeleBot.send_document:29
#: telebot.async_telebot.AsyncTeleBot.send_location:28
#: telebot.async_telebot.AsyncTeleBot.send_media_group:21
#: telebot.async_telebot.AsyncTeleBot.send_message:40
#: telebot.async_telebot.AsyncTeleBot.send_photo:39
#: telebot.async_telebot.AsyncTeleBot.send_sticker:24
#: telebot.async_telebot.AsyncTeleBot.send_venue:38
#: telebot.async_telebot.AsyncTeleBot.send_video:52
#: telebot.async_telebot.AsyncTeleBot.send_video_note:30
#: telebot.async_telebot.AsyncTeleBot.send_voice:34
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location:19
msgid "Timeout in seconds for the request."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:42
#: telebot.async_telebot.AsyncTeleBot.send_audio:60
#: telebot.async_telebot.AsyncTeleBot.send_document:53
#: telebot.async_telebot.AsyncTeleBot.send_location:46
#: telebot.async_telebot.AsyncTeleBot.send_photo:42
#: telebot.async_telebot.AsyncTeleBot.send_sticker:36
#: telebot.async_telebot.AsyncTeleBot.send_voice:46
msgid "Identifier of a message thread, in which the message will be sent"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:45
#: telebot.async_telebot.AsyncTeleBot.send_animation:66
#: telebot.async_telebot.AsyncTeleBot.send_audio:66
#: telebot.async_telebot.AsyncTeleBot.send_contact:44
#: telebot.async_telebot.AsyncTeleBot.send_dice:35
#: telebot.async_telebot.AsyncTeleBot.send_document:59
#: telebot.async_telebot.AsyncTeleBot.send_game:32
#: telebot.async_telebot.AsyncTeleBot.send_invoice:101
#: telebot.async_telebot.AsyncTeleBot.send_location:49
#: telebot.async_telebot.AsyncTeleBot.send_media_group:30
#: telebot.async_telebot.AsyncTeleBot.send_message:46
#: telebot.async_telebot.AsyncTeleBot.send_photo:48
#: telebot.async_telebot.AsyncTeleBot.send_poll:70
#: telebot.async_telebot.AsyncTeleBot.send_sticker:42
#: telebot.async_telebot.AsyncTeleBot.send_venue:57
#: telebot.async_telebot.AsyncTeleBot.send_video:67
#: telebot.async_telebot.AsyncTeleBot.send_video_note:51
#: telebot.async_telebot.AsyncTeleBot.send_voice:49
msgid "Reply parameters."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:48
msgid "On success, the MessageId of the sent message is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_message:49
#: telebot.async_telebot.AsyncTeleBot.forward_messages:22
msgid ":class:`telebot.types.MessageID`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:9
#: telebot.async_telebot.AsyncTeleBot.forward_messages:9
msgid "Message identifiers in the chat specified in from_chat_id"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:12
#: telebot.async_telebot.AsyncTeleBot.forward_message:5
#: telebot.async_telebot.AsyncTeleBot.forward_messages:12
msgid ""
"Sends the message silently. Users will receive a notification with no "
"sound"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:15
#: telebot.async_telebot.AsyncTeleBot.forward_messages:15
#: telebot.async_telebot.AsyncTeleBot.send_media_group:27
msgid "Identifier of a message thread, in which the messages will be sent"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:18
#: telebot.async_telebot.AsyncTeleBot.forward_message:17
#: telebot.async_telebot.AsyncTeleBot.forward_messages:18
msgid "Protects the contents of the forwarded message from forwarding and saving"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:21
msgid "Pass True to copy the messages without their captions"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:24
msgid "On success, an array of MessageId of the sent messages is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.copy_messages:25
msgid ":obj:`list` of :class:`telebot.types.MessageID`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:1
msgid ""
"Use this method to create an additional invite link for a chat. The bot "
"must be an administrator in the chat for this to work and must have the "
"appropriate administrator rights. The link can be revoked using the "
"method revokeChatInviteLink. Returns the new invite link as "
"ChatInviteLink object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:6
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#createchatinvitelink"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:8
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:6
#: telebot.async_telebot.AsyncTeleBot.export_chat_invite_link:6
#: telebot.async_telebot.AsyncTeleBot.revoke_chat_invite_link:7
msgid ""
"Id: Unique identifier for the target chat or username of the target "
"channel (in the format @channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:12
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:10
msgid "Invite link name; 0-32 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:15
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:16
msgid "Point in time (Unix timestamp) when the link will expire"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:18
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:19
msgid "Maximum number of users that can be members of the chat simultaneously"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:21
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:22
msgid ""
"True, if users joining the chat via the link need to be approved by chat "
"administrators. If True, member_limit can't be specified"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:24
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:25
#: telebot.async_telebot.AsyncTeleBot.revoke_chat_invite_link:14
msgid "Returns the new invite link as ChatInviteLink object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_chat_invite_link:25
#: telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:26
#: telebot.async_telebot.AsyncTeleBot.revoke_chat_invite_link:15
msgid ":class:`telebot.types.ChatInviteLink`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:1
msgid ""
"Use this method to create a topic in a forum supergroup chat. The bot "
"must be an administrator in the chat for this to work and must have the "
"can_manage_topics administrator rights. Returns information about the "
"created topic as a ForumTopic object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#createforumtopic"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:10
msgid "Name of the topic, 1-128 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:13
msgid ""
"Color of the topic icon in RGB format. Currently, must be one of "
"0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:16
msgid ""
"Custom emoji for the topic icon. Must be an emoji of type “tgs” and must "
"be exactly 1 character long"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:19
msgid ""
"On success, information about the created topic is returned as a "
"ForumTopic object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_forum_topic:20
msgid ":class:`telebot.types.ForumTopic`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:1
msgid ""
"Use this method to create a link for an invoice. Returns the created "
"invoice link as String on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#createinvoicelink"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:7
#: telebot.async_telebot.AsyncTeleBot.send_invoice:8
msgid "Product name, 1-32 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:10
#: telebot.async_telebot.AsyncTeleBot.send_invoice:11
msgid "Product description, 1-255 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:13
#: telebot.async_telebot.AsyncTeleBot.send_invoice:14
msgid ""
"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to "
"the user, use for your internal processes."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:17
#: telebot.async_telebot.AsyncTeleBot.send_invoice:18
msgid "Payments provider token, obtained via @Botfather"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:20
#: telebot.async_telebot.AsyncTeleBot.send_invoice:21
msgid ""
"Three-letter ISO 4217 currency code, see "
"https://core.telegram.org/bots/payments#supported-currencies"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:24
#: telebot.async_telebot.AsyncTeleBot.send_invoice:25
msgid ""
"Price breakdown, a list of components (e.g. product price, tax, discount,"
" delivery cost, delivery tax, bonus, etc.)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:28
#: telebot.async_telebot.AsyncTeleBot.send_invoice:87
msgid "The maximum accepted amount for tips in the smallest units of the currency"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:31
#: telebot.async_telebot.AsyncTeleBot.send_invoice:90
msgid ""
"A JSON-serialized array of suggested amounts of tips in the smallest "
"units of the currency. At most 4 suggested tip amounts can be specified."
" The suggested tip amounts must be positive, passed in a strictly "
"increased order and must not exceed max_tip_amount."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:36
#: telebot.async_telebot.AsyncTeleBot.send_invoice:77
msgid ""
"A JSON-serialized data about the invoice, which will be shared with the "
"payment provider. A detailed description of required fields should be "
"provided by the payment provider."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:40
msgid ""
"URL of the product photo for the invoice. Can be a photo of the goods or "
"a photo of the invoice. People like it better when they see a photo of "
"what they are paying for."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:44
#: telebot.async_telebot.AsyncTeleBot.send_invoice:37
msgid "Photo size in bytes"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:47
#: telebot.async_telebot.AsyncTeleBot.send_invoice:40
msgid "Photo width"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:50
#: telebot.async_telebot.AsyncTeleBot.send_invoice:43
msgid "Photo height"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:53
#: telebot.async_telebot.AsyncTeleBot.send_invoice:46
msgid "Pass True, if you require the user's full name to complete the order"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:56
#: telebot.async_telebot.AsyncTeleBot.send_invoice:49
msgid "Pass True, if you require the user's phone number to complete the order"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:59
#: telebot.async_telebot.AsyncTeleBot.send_invoice:52
msgid "Pass True, if you require the user's email to complete the order"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:62
#: telebot.async_telebot.AsyncTeleBot.send_invoice:55
msgid ""
"Pass True, if you require the user's shipping address to complete the "
"order"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:65
#: telebot.async_telebot.AsyncTeleBot.send_invoice:61
msgid "Pass True, if user's phone number should be sent to provider"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:68
#: telebot.async_telebot.AsyncTeleBot.send_invoice:64
msgid "Pass True, if user's email address should be sent to provider"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:71
#: telebot.async_telebot.AsyncTeleBot.send_invoice:58
msgid "Pass True, if the final price depends on the shipping method"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:74
msgid "Created invoice link as String on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_invoice_link:75
#: telebot.async_telebot.AsyncTeleBot.export_chat_invite_link:11
#: telebot.async_telebot.AsyncTeleBot.get_file_url:7
msgid ":obj:`str`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:1
msgid ""
"Use this method to create new sticker set owned by a user. The bot will "
"be able to edit the created sticker set. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#createnewstickerset"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:8
msgid ""
"Fields *_sticker are deprecated, pass a list of stickers to stickers "
"parameter instead."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:13
msgid ""
"Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., "
"animals). Can contain only English letters, digits and underscores. Must "
"begin with a letter, can't contain consecutive underscores and must end "
"in \"_by_<bot_username>\". <bot_username> is case insensitive. 1-64 "
"characters."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:18
msgid "Sticker set title, 1-64 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:35
msgid ""
"Pass True, if a set of mask stickers should be created. Deprecated since "
"Bot API 6.2, use sticker_type instead."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:39
msgid ""
"Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. "
"By default, a regular sticker set is created."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:45
msgid ""
"Pass True if stickers in the sticker set must be repainted to the color "
"of text when used in messages, the accent color if used as emoji status, "
"white on chat photos, or another appropriate color based on context; for "
"custom emoji sticker sets only"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:50
msgid "List of stickers to be added to the set"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.create_new_sticker_set:53
msgid ""
"Format of stickers in the set, must be one of “static”, “animated”, "
"“video”"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.decline_chat_join_request:1
msgid ""
"Use this method to decline a chat join request. The bot must be an "
"administrator in the chat for this to work and must have the "
"can_invite_users administrator right. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.decline_chat_join_request:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#declinechatjoinrequest"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_chat_photo:1
msgid ""
"Use this method to delete a chat photo. Photos can't be changed for "
"private chats. The bot must be an administrator in the chat for this to "
"work and must have the appropriate admin rights. Returns True on success."
" Note: In regular groups (non-supergroups), this method will only work if"
" the ‘All Members Are Admins’ setting is off in the target group."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_chat_photo:6
msgid "Telegram documentation: https://core.telegram.org/bots/api#deletechatphoto"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_chat_photo:8
#: telebot.async_telebot.AsyncTeleBot.set_chat_photo:9
#: telebot.async_telebot.AsyncTeleBot.unpin_all_chat_messages:7
msgid ""
"Int or Str: Unique identifier for the target chat or username of the "
"target channel (in the format @channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set:1
msgid ""
"Use this method to delete a group sticker set from a supergroup. The bot "
"must be an administrator in the chat for this to work and must have the "
"appropriate admin rights. Use the field can_set_sticker_set optionally "
"returned in getChat requests to check if the bot can use this method. "
"Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_chat_sticker_set:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#deletechatstickerset"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_forum_topic:1
msgid ""
"Use this method to delete a topic in a forum supergroup chat. The bot "
"must be an administrator in the chat for this to work and must have the "
"can_manage_topics administrator rights, unless it is the creator of the "
"topic. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_forum_topic:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#deleteforumtopic"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_forum_topic:10
msgid "Identifier of the topic to delete"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_message:1
msgid ""
"Use this method to delete a message, including service messages, with the"
" following limitations: - A message can only be deleted if it was sent "
"less than 48 hours ago. - A dice message in a private chat can only be "
"deleted if it was sent more than 24 hours ago. - Bots can delete outgoing"
" messages in private chats, groups, and supergroups. - Bots can delete "
"incoming messages in private chats. - Bots granted can_post_messages "
"permissions can delete outgoing messages in channels. - If the bot is an "
"administrator of a group, it can delete any message there. - If the bot "
"has can_delete_messages permission in a supergroup or a channel, it can "
"delete any message there. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_message:11
msgid "Telegram documentation: https://core.telegram.org/bots/api#deletemessage"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_message:16
msgid "Identifier of the message to delete"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_messages:1
msgid ""
"Use this method to delete multiple messages in a chat. The number of "
"messages to be deleted must not exceed 100. If the chat is a private "
"chat, the user must be an administrator of the chat for this to work and "
"must have the appropriate admin rights. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_messages:6
msgid "Telegram documentation: https://core.telegram.org/bots/api#deletemessages"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_messages:11
msgid "Identifiers of the messages to be deleted"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_my_commands:1
msgid ""
"Use this method to delete the list of the bot's commands for the given "
"scope and user language. After deletion, higher level commands will be "
"shown to affected users. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_my_commands:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#deletemycommands"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_my_commands:7
#: telebot.async_telebot.AsyncTeleBot.get_my_commands:6
#: telebot.async_telebot.AsyncTeleBot.set_my_commands:8
msgid ""
"The scope of users for which the commands are relevant. Defaults to "
"BotCommandScopeDefault."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_my_commands:11
#: telebot.async_telebot.AsyncTeleBot.get_my_commands:10
#: telebot.async_telebot.AsyncTeleBot.set_my_commands:12
msgid ""
"A two-letter ISO 639-1 language code. If empty, commands will be applied "
"to all users from the given scope, for whose language there are no "
"dedicated commands"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_state:1
msgid "Delete the current state of a user."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set:1
msgid ""
"Use this method to delete a sticker from a set created by the bot. "
"Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set:3
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#deletestickerfromset"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_sticker_from_set:5
#: telebot.async_telebot.AsyncTeleBot.set_sticker_position_in_set:5
msgid "File identifier of the sticker"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_sticker_set:1
msgid "Use this method to delete a sticker set. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_webhook:1
msgid ""
"Use this method to remove webhook integration if you decide to switch "
"back to getUpdates. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_webhook:4
msgid "Telegram documentation: https://core.telegram.org/bots/api#deletewebhook"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_webhook:6
#: telebot.async_telebot.AsyncTeleBot.set_webhook:36
msgid "Pass True to drop all pending updates, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.delete_webhook:9
msgid "Request connection timeout, defaults to None"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.download_file:1
msgid "Downloads file."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.download_file:3
msgid "Path where the file should be downloaded."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.download_file:6
msgid "bytes"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.download_file:7
msgid ":obj:`bytes`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:1
msgid ""
"Use this method to edit a non-primary invite link created by the bot. The"
" bot must be an administrator in the chat for this to work and must have "
"the appropriate admin rights."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#editchatinvitelink"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_chat_invite_link:13
msgid "The invite link to edit"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_forum_topic:1
msgid ""
"Use this method to edit name and icon of a topic in a forum supergroup "
"chat. The bot must be an administrator in the chat for this to work and "
"must have can_manage_topics administrator rights, unless it is the "
"creator of the topic. Returns True on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_forum_topic:5
msgid "Telegram Documentation: https://core.telegram.org/bots/api#editforumtopic"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_forum_topic:10
msgid "Identifier of the topic to edit"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_forum_topic:13
msgid ""
"Optional, New name of the topic, 1-128 characters. If not specififed or "
"empty, the current name of the topic will be kept"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_forum_topic:17
msgid ""
"Optional, New unique identifier of the custom emoji shown as the topic "
"icon. Use getForumTopicIconStickers to get all allowed custom emoji "
"identifiers. Pass an empty string to remove the icon. If not specified, "
"the current icon will be kept"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_general_forum_topic:1
msgid ""
"Use this method to edit the name of the 'General' topic in a forum "
"supergroup chat. The bot must be an administrator in the chat for this to"
" work and must have can_manage_topics administrator rights. Returns True "
"on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_general_forum_topic:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#editgeneralforumtopic"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_general_forum_topic:10
msgid "New topic name, 1-128 characters"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:1
msgid "Use this method to edit captions of messages."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:3
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#editmessagecaption"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:5
msgid "New caption of the message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:8
msgid ""
"Required if inline_message_id is not specified. Unique identifier for the"
" target chat or username of the target channel"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:11
msgid "Required if inline_message_id is not specified."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:14
msgid ""
"Required if inline_message_id is not specified. Identifier of the inline "
"message."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:17
msgid "New caption of the message, 0-1024 characters after entities parsing"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:20
msgid ""
"A JSON-serialized array of objects that describe how the caption should "
"be parsed."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:23
#: telebot.async_telebot.AsyncTeleBot.edit_message_media:19
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:14
#: telebot.async_telebot.AsyncTeleBot.edit_message_text:26
msgid "A JSON-serialized object for an inline keyboard."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:26
#: telebot.async_telebot.AsyncTeleBot.edit_message_media:22
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:17
#: telebot.async_telebot.AsyncTeleBot.edit_message_text:32
msgid ""
"On success, if edited message is sent by the bot, the edited Message is "
"returned, otherwise True is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_caption:27
msgid ":obj:`types.Message` | :obj:`bool`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:3
msgid ""
"Use this method to edit live location messages. A location can be edited "
"until its live_period expires or editing is explicitly"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:2
msgid ""
"disabled by a call to stopMessageLiveLocation. On success, if the edited "
"message is not an inline message, the edited Message is returned, "
"otherwise True is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#editmessagelivelocation"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:7
msgid "Latitude of new location"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:10
msgid "Longitude of new location"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:16
msgid ""
"Required if inline_message_id is not specified. Identifier of the message"
" to edit"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:19
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location:15
msgid "A JSON-serialized object for a new inline keyboard."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:26
#: telebot.async_telebot.AsyncTeleBot.edit_message_media:16
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:11
#: telebot.async_telebot.AsyncTeleBot.edit_message_text:14
#: telebot.async_telebot.AsyncTeleBot.get_game_high_scores:19
#: telebot.async_telebot.AsyncTeleBot.set_game_score:20
msgid ""
"Required if chat_id and message_id are not specified. Identifier of the "
"inline message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:29
#: telebot.async_telebot.AsyncTeleBot.send_location:31
msgid "The radius of uncertainty for the location, measured in meters; 0-1500"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:32
msgid ""
"Direction in which the user is moving, in degrees. Must be between 1 and "
"360 if specified."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:35
msgid ""
"The maximum distance for proximity alerts about approaching another chat "
"member, in meters. Must be between 1 and 100000 if specified."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:38
msgid ""
"On success, if the edited message is not an inline message, the edited "
"Message is returned, otherwise True is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_live_location:39
#: telebot.async_telebot.AsyncTeleBot.stop_message_live_location:23
msgid ":class:`telebot.types.Message` or bool"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_media:1
msgid ""
"Use this method to edit animation, audio, document, photo, or video "
"messages. If a message is a part of a message album, then it can be "
"edited only to a photo or a video. Otherwise, message type can be changed"
" arbitrarily. When inline message is edited, new file can't be uploaded. "
"Use previously uploaded file via its file_id or specify a URL."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_media:6
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#editmessagemedia"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_media:8
msgid "A JSON-serialized object for a new media content of the message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_media:10
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:5
#: telebot.async_telebot.AsyncTeleBot.edit_message_text:8
#: telebot.async_telebot.AsyncTeleBot.get_game_high_scores:13
#: telebot.async_telebot.AsyncTeleBot.set_game_score:14
msgid ""
"Required if inline_message_id is not specified. Unique identifier for the"
" target chat or username of the target channel (in the format "
"@channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_media:13
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:8
#: telebot.async_telebot.AsyncTeleBot.edit_message_text:11
#: telebot.async_telebot.AsyncTeleBot.get_game_high_scores:16
#: telebot.async_telebot.AsyncTeleBot.set_game_score:17
msgid ""
"Required if inline_message_id is not specified. Identifier of the sent "
"message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_media:23
#: telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:18
#: telebot.async_telebot.AsyncTeleBot.edit_message_text:33
#: telebot.async_telebot.AsyncTeleBot.set_game_score:27
msgid ":obj:`types.Message` or :obj:`bool`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:1
msgid "Use this method to edit only the reply markup of messages."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_reply_markup:3
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#editmessagereplymarkup"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:1
msgid "Use this method to edit text and game messages."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#editmessagetext"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:5
msgid "New text of the message, 1-4096 characters after entities parsing"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:17
#: telebot.async_telebot.AsyncTeleBot.send_message:15
msgid "Mode for parsing entities in the message text."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:20
msgid ""
"List of special entities that appear in the message text, which can be "
"specified instead of parse_mode"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:23
#: telebot.async_telebot.AsyncTeleBot.send_message:21
msgid "Disables link previews for links in this message"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edit_message_text:29
msgid ""
"A JSON-serialized object for options used to automatically generate "
"Telegram link previews for messages."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edited_channel_post_handler:1
msgid ""
"Handles new version of a channel post that is known to the bot and was "
"edited. As a parameter to the decorator function, it passes "
":class:`telebot.types.Message` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edited_message_handler:1
msgid "Handles new version of a message that is known to the bot and was edited."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edited_message_handler:3
msgid ""
"As a parameter to the decorator function, it passes "
":class:`telebot.types.Message` object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.edited_message_handler:17
#: telebot.async_telebot.AsyncTeleBot.message_handler:47
msgid "list of chat types"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.enable_saving_states:1
msgid "Enable saving states (by default saving disabled)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.enable_saving_states:4
msgid ""
"It is recommended to pass a "
":class:`~telebot.asyncio_storage.StatePickleStorage` instance as "
"state_storage to TeleBot class."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.enable_saving_states:7
msgid "Filename of saving file, defaults to \"./.state-save/states.pkl\""
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.export_chat_invite_link:1
msgid ""
"Use this method to export an invite link to a supergroup or a channel. "
"The bot must be an administrator in the chat for this to work and must "
"have the appropriate admin rights."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.export_chat_invite_link:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#exportchatinvitelink"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.export_chat_invite_link:10
msgid "exported invite link as String on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.forward_message:1
#: telebot.async_telebot.AsyncTeleBot.forward_messages:1
msgid "Use this method to forward messages of any kind."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.forward_message:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#forwardmessage"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.forward_message:23
#: telebot.async_telebot.AsyncTeleBot.send_message:43
msgid ""
"Unique identifier for the target message thread (topic) of the forum; for"
" forum supergroups only"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.forward_message:26
#: telebot.async_telebot.AsyncTeleBot.forward_messages:21
#: telebot.async_telebot.AsyncTeleBot.reply_to:11
#: telebot.async_telebot.AsyncTeleBot.send_animation:69
#: telebot.async_telebot.AsyncTeleBot.send_audio:69
#: telebot.async_telebot.AsyncTeleBot.send_contact:47
#: telebot.async_telebot.AsyncTeleBot.send_dice:38
#: telebot.async_telebot.AsyncTeleBot.send_document:62
#: telebot.async_telebot.AsyncTeleBot.send_game:35
#: telebot.async_telebot.AsyncTeleBot.send_invoice:104
#: telebot.async_telebot.AsyncTeleBot.send_location:52
#: telebot.async_telebot.AsyncTeleBot.send_message:52
#: telebot.async_telebot.AsyncTeleBot.send_photo:51
#: telebot.async_telebot.AsyncTeleBot.send_poll:73
#: telebot.async_telebot.AsyncTeleBot.send_sticker:45
#: telebot.async_telebot.AsyncTeleBot.send_venue:60
#: telebot.async_telebot.AsyncTeleBot.send_video:70
#: telebot.async_telebot.AsyncTeleBot.send_video_note:54
#: telebot.async_telebot.AsyncTeleBot.send_voice:52
msgid "On success, the sent Message is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.forward_message:27
#: telebot.async_telebot.AsyncTeleBot.reply_to:12
#: telebot.async_telebot.AsyncTeleBot.send_animation:70
#: telebot.async_telebot.AsyncTeleBot.send_audio:70
#: telebot.async_telebot.AsyncTeleBot.send_contact:48
#: telebot.async_telebot.AsyncTeleBot.send_dice:39
#: telebot.async_telebot.AsyncTeleBot.send_document:63
#: telebot.async_telebot.AsyncTeleBot.send_location:53
#: telebot.async_telebot.AsyncTeleBot.send_message:53
#: telebot.async_telebot.AsyncTeleBot.send_photo:52
#: telebot.async_telebot.AsyncTeleBot.send_sticker:46
#: telebot.async_telebot.AsyncTeleBot.send_venue:61
#: telebot.async_telebot.AsyncTeleBot.send_video:71
#: telebot.async_telebot.AsyncTeleBot.send_video_note:55
msgid ":class:`telebot.types.Message`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat:1
msgid ""
"Use this method to get up to date information about the chat (current "
"name of the user for one-on-one conversations, current username of a "
"user, group or channel, etc.). Returns a Chat object on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat:4
msgid "Telegram documentation: https://core.telegram.org/bots/api#getchat"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat:6
#: telebot.async_telebot.AsyncTeleBot.get_chat_administrators:7
#: telebot.async_telebot.AsyncTeleBot.get_chat_member_count:5
#: telebot.async_telebot.AsyncTeleBot.leave_chat:5
#: telebot.async_telebot.AsyncTeleBot.set_message_reaction:5
msgid ""
"Unique identifier for the target chat or username of the target "
"supergroup or channel (in the format @channelusername)"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat:9
msgid "Chat information"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat:10
msgid ":class:`telebot.types.Chat`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_administrators:1
msgid ""
"Use this method to get a list of administrators in a chat. On success, "
"returns an Array of ChatMember objects that contains information about "
"all chat administrators except other bots."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_administrators:5
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#getchatadministrators"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_administrators:9
msgid "List made of ChatMember objects."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_administrators:10
msgid ":obj:`list` of :class:`telebot.types.ChatMember`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member:1
msgid ""
"Use this method to get information about a member of a chat. Returns a "
"ChatMember object on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#getchatmember"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member:11
msgid "Returns ChatMember object on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member:12
msgid ":class:`telebot.types.ChatMember`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member_count:1
msgid "Use this method to get the number of members in a chat."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member_count:3
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#getchatmembercount"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member_count:8
msgid "Number of members in the chat."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_member_count:9
msgid ":obj:`int`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_menu_button:1
msgid ""
"Use this method to get the current value of the bot's menu button in a "
"private chat, or the default menu button. Returns MenuButton on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_menu_button:5
msgid ""
"Telegram Documentation: "
"https://core.telegram.org/bots/api#getchatmenubutton"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_menu_button:7
msgid ""
"Unique identifier for the target private chat. If not specified, default "
"bot's menu button will be returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_menu_button:11
msgid "types.MenuButton"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_chat_menu_button:12
msgid ":class:`telebot.types.MenuButton`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers:1
msgid ""
"Use this method to get information about custom emoji stickers by their "
"identifiers. Returns an Array of Sticker objects."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers:4
msgid ""
"List of custom emoji identifiers. At most 200 custom emoji identifiers "
"can be specified."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers:7
msgid "Returns an Array of Sticker objects."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_custom_emoji_stickers:8
msgid ":obj:`list` of :class:`telebot.types.Sticker`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file:1
msgid ""
"Use this method to get basic info about a file and prepare it for "
"downloading. For the moment, bots can download files of up to 20MB in "
"size. On success, a File object is returned. It is guaranteed that the "
"link will be valid for at least 1 hour. When the link expires, a new one "
"can be requested by calling get_file again."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file:7
msgid "Telegram documentation: https://core.telegram.org/bots/api#getfile"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file:9
msgid "File identifier"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file:12
#: telebot.async_telebot.AsyncTeleBot.upload_sticker_file:21
msgid ":class:`telebot.types.File`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file_url:1
msgid "Get a valid URL for downloading a file."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file_url:3
msgid "File identifier to get download URL for."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_file_url:6
msgid "URL for downloading the file."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_forum_topic_icon_stickers:1
msgid ""
"Use this method to get custom emoji stickers, which can be used as a "
"forum topic icon by any user. Requires no parameters. Returns an Array of"
" Sticker objects."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_forum_topic_icon_stickers:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#getforumtopiciconstickers"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_forum_topic_icon_stickers:6
msgid "On success, a list of StickerSet objects is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_forum_topic_icon_stickers:7
msgid "List[:class:`telebot.types.StickerSet`]"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_game_high_scores:1
msgid ""
"Use this method to get data for high score tables. Will return the score "
"of the specified user and several of their neighbors in a game. On "
"success, returns an Array of GameHighScore objects."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_game_high_scores:4
msgid ""
"This method will currently return scores for the target user, plus two of"
" their closest neighbors on each side. Will also return the top three "
"users if the user and their neighbors are not among them. Please note "
"that this behavior is subject to change."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_game_high_scores:8
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#getgamehighscores"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_game_high_scores:10
#: telebot.async_telebot.AsyncTeleBot.retrieve_data:3
#: telebot.async_telebot.AsyncTeleBot.set_game_score:5
#: telebot.async_telebot.AsyncTeleBot.set_sticker_set_thumbnail:9
msgid "User identifier"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_game_high_scores:22
msgid "On success, returns an Array of GameHighScore objects."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_me:1
msgid "Returns basic information about the bot in form of a User object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_me:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#getme"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_commands:1
msgid ""
"Use this method to get the current list of the bot's commands. Returns "
"List of BotCommand on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_commands:4
msgid "Telegram documentation: https://core.telegram.org/bots/api#getmycommands"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_commands:15
msgid "List of BotCommand on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_commands:16
msgid ":obj:`list` of :class:`telebot.types.BotCommand`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights:1
msgid ""
"Use this method to get the current default administrator rights of the "
"bot. Returns ChatAdministratorRights on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights:4
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#getmydefaultadministratorrights"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights:6
msgid ""
"Pass True to get the default administrator rights of the bot in channels."
" Otherwise, the default administrator rights of the bot for groups and "
"supergroups will be returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights:9
msgid "Returns ChatAdministratorRights on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_default_administrator_rights:10
msgid ":class:`telebot.types.ChatAdministratorRights`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_description:1
msgid ""
"Use this method to get the current bot description for the given user "
"language. Returns BotDescription on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_description:4
#: telebot.async_telebot.AsyncTeleBot.get_my_short_description:4
msgid "A two-letter ISO 639-1 language code or an empty string"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_description:7
msgid ":class:`telebot.types.BotDescription`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_name:1
msgid ""
"Use this method to get the current bot name for the given user language. "
"Returns BotName on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_name:4
msgid "Telegram documentation: https://core.telegram.org/bots/api#getmyname"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_name:6
msgid "Optional. A two-letter ISO 639-1 language code or an empty string"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_name:9
msgid ":class:`telebot.types.BotName`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_short_description:1
msgid ""
"Use this method to get the current bot short description for the given "
"user language. Returns BotShortDescription on success."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_my_short_description:7
msgid ":class:`telebot.types.BotShortDescription`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_state:1
msgid ""
"Gets current state of a user. Not recommended to use this method. But it "
"is ok for debugging."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_state:10
msgid "state of a user"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_state:11
msgid ":obj:`int` or :obj:`str` or :class:`telebot.types.State`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_sticker_set:1
msgid ""
"Use this method to get a sticker set. On success, a StickerSet object is "
"returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_sticker_set:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#getstickerset"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_sticker_set:8
msgid "On success, a StickerSet object is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_sticker_set:9
#: telebot.async_telebot.AsyncTeleBot.set_chat_sticker_set:14
msgid ":class:`telebot.types.StickerSet`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:1
msgid ""
"Use this method to receive incoming updates using long polling (wiki). An"
" Array of Update objects is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:3
msgid "Telegram documentation: https://core.telegram.org/bots/api#getupdates"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:6
msgid ""
"Identifier of the first update to be returned. Must be greater by one "
"than the highest among the identifiers of previously received updates. By"
" default, updates starting with the earliest unconfirmed update are "
"returned. An update is considered confirmed as soon as getUpdates is "
"called with an offset higher than its update_id. The negative offset can "
"be specified to retrieve updates starting from -offset update from the "
"end of the updates queue. All previous updates will forgotten."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:12
msgid ""
"Limits the number of updates to be retrieved. Values between 1-100 are "
"accepted. Defaults to 100."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:15
#: telebot.async_telebot.AsyncTeleBot.get_webhook_info:6
#: telebot.async_telebot.AsyncTeleBot.polling:26
msgid "Request connection timeout"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:18
msgid "Array of string. List the types of updates you want your bot to receive."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:21
msgid "Timeout in seconds for request."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:24
msgid "An Array of Update objects is returned."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_updates:25
msgid ":obj:`list` of :class:`telebot.types.Update`"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts:1
msgid ""
"Use this method to get the list of boosts added to a chat by a user. "
"Requires administrator rights in the chat. Returns a UserChatBoosts "
"object."
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts:3
msgid ""
"Telegram documentation: "
"https://core.telegram.org/bots/api#getuserchatboosts"
msgstr ""
#: of telebot.async_telebot.AsyncTeleBot.get_user_chat_boosts:5
#: telebot
gitextract_szq67bee/
├── .github/
│ ├── ISSUE_TEMPLATE
│ ├── PULL_REQUEST_TEMPLATE.md
│ └── workflows/
│ └── setup_python.yml
├── .gitignore
├── .readthedocs.yml
├── .travis.yml
├── LICENSE
├── README.md
├── doc_req.txt
├── docs/
│ ├── Makefile
│ └── source/
│ ├── async_version/
│ │ └── index.rst
│ ├── calldata.rst
│ ├── conf.py
│ ├── formatting.rst
│ ├── index.rst
│ ├── install.rst
│ ├── locales/
│ │ ├── en/
│ │ │ └── LC_MESSAGES/
│ │ │ ├── async_version.po
│ │ │ ├── calldata.po
│ │ │ ├── formatting.po
│ │ │ ├── index.po
│ │ │ ├── install.po
│ │ │ ├── quick_start.po
│ │ │ ├── sync_version.po
│ │ │ ├── types.po
│ │ │ └── util.po
│ │ └── ru/
│ │ └── LC_MESSAGES/
│ │ ├── async_version.po
│ │ ├── calldata.po
│ │ ├── formatting.po
│ │ ├── index.po
│ │ ├── install.po
│ │ ├── quick_start.po
│ │ ├── sync_version.po
│ │ ├── types.po
│ │ └── util.po
│ ├── quick_start.rst
│ ├── sync_version/
│ │ └── index.rst
│ ├── types.rst
│ └── util.rst
├── examples/
│ ├── anonymous_bot.py
│ ├── asynchronous_telebot/
│ │ ├── callback_data_examples/
│ │ │ ├── advanced_calendar_example/
│ │ │ │ ├── filters.py
│ │ │ │ ├── keyboards.py
│ │ │ │ └── main.py
│ │ │ └── simple_products_example.py
│ │ ├── chat_join_request.py
│ │ ├── chat_member_example.py
│ │ ├── continue_handling.py
│ │ ├── custom_filters/
│ │ │ ├── admin_filter_example.py
│ │ │ ├── advanced_text_filter.py
│ │ │ ├── general_custom_filters.py
│ │ │ ├── id_filter_example.py
│ │ │ ├── is_filter_example.py
│ │ │ └── text_filter_example.py
│ │ ├── custom_states.py
│ │ ├── detect_changes.py
│ │ ├── download_file_example.py
│ │ ├── echo_bot.py
│ │ ├── exception_handler.py
│ │ ├── formatting_example.py
│ │ ├── message_reaction_example.py
│ │ ├── middleware/
│ │ │ ├── flooding_middleware.py
│ │ │ ├── i18n.py
│ │ │ └── i18n_middleware_example/
│ │ │ ├── i18n_base_midddleware.py
│ │ │ ├── keyboards.py
│ │ │ ├── locales/
│ │ │ │ ├── en/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ ├── ru/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ └── uz_Latn/
│ │ │ │ └── LC_MESSAGES/
│ │ │ │ └── messages.po
│ │ │ └── main.py
│ │ ├── mini_app.py
│ │ ├── multibot/
│ │ │ ├── README.MD
│ │ │ ├── config.py
│ │ │ ├── handlers.py
│ │ │ ├── main.py
│ │ │ └── nginx_conf.conf
│ │ ├── register_handler.py
│ │ ├── send_file_example.py
│ │ ├── send_message_draft_example.py
│ │ ├── set_command_example.py
│ │ ├── skip_updates_example.py
│ │ ├── timer_bot_async.py
│ │ ├── update_listener.py
│ │ └── webhooks/
│ │ ├── async_webhook_aiohttp_echo_bot.py
│ │ ├── run_webhooks.py
│ │ └── webhook_starlette_echo_bot.py
│ ├── callback_data_examples/
│ │ ├── advanced_calendar_example/
│ │ │ ├── filters.py
│ │ │ ├── keyboards.py
│ │ │ └── main.py
│ │ └── simple_products_example.py
│ ├── chat_join_request.py
│ ├── chat_member_example.py
│ ├── continue_handling.py
│ ├── create_invite_link.py
│ ├── custom_filters/
│ │ ├── admin_filter_example.py
│ │ ├── advanced_text_filter.py
│ │ ├── general_custom_filters.py
│ │ ├── id_filter_example.py
│ │ ├── is_filter_example.py
│ │ └── text_filter_example.py
│ ├── custom_states.py
│ ├── deep_linking.py
│ ├── detailed_example/
│ │ └── detailed_example.py
│ ├── detect_changes.py
│ ├── download_file_example.py
│ ├── echo_bot.py
│ ├── formatting_example.py
│ ├── inline_example.py
│ ├── inline_keyboard_example.py
│ ├── message_reaction_example.py
│ ├── middleware/
│ │ ├── README.md
│ │ ├── class_based/
│ │ │ ├── antiflood_middleware.py
│ │ │ ├── basic_example.py
│ │ │ └── i18n_middleware/
│ │ │ ├── i18n_base_middleware.py
│ │ │ ├── keyboards.py
│ │ │ ├── locales/
│ │ │ │ ├── en/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ ├── ru/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ └── uz_Latn/
│ │ │ │ └── LC_MESSAGES/
│ │ │ │ └── messages.po
│ │ │ └── main.py
│ │ └── function_based/
│ │ ├── i18n.py
│ │ ├── i18n_gettext/
│ │ │ ├── i18n_class.py
│ │ │ ├── keyboards.py
│ │ │ ├── locales/
│ │ │ │ ├── en/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ ├── ru/
│ │ │ │ │ └── LC_MESSAGES/
│ │ │ │ │ └── messages.po
│ │ │ │ └── uz_Latn/
│ │ │ │ └── LC_MESSAGES/
│ │ │ │ └── messages.po
│ │ │ └── main.py
│ │ └── session.py
│ ├── mini_app.py
│ ├── mini_app_web/
│ │ ├── index.html
│ │ ├── script.js
│ │ └── style.css
│ ├── multibot/
│ │ ├── README.MD
│ │ ├── config.py
│ │ ├── handlers.py
│ │ ├── main.py
│ │ └── nginx_conf.conf
│ ├── payments_example.py
│ ├── poll_example.py
│ ├── register_handler.py
│ ├── reply_keyboard_markup_example.py
│ ├── send_message_draft_example.py
│ ├── serverless/
│ │ ├── aws_lambda_function.py
│ │ ├── azure_functions
│ │ └── flask_google_cloud_bot/
│ │ ├── .gcloudignore
│ │ ├── app.yaml
│ │ ├── main.py
│ │ └── requirements.txt
│ ├── set_command_example.py
│ ├── skip_updates_example.py
│ ├── stars_payment.py
│ ├── step_example.py
│ ├── telebot_bot/
│ │ └── telebot_bot.py
│ ├── timer_bot.py
│ └── webhook_examples/
│ ├── README.md
│ ├── run_webhooks.py
│ ├── webhook_aiohttp_echo_bot.py
│ ├── webhook_cherrypy_echo_bot.py
│ ├── webhook_cpython_echo_bot.py
│ ├── webhook_fastapi_echo_bot.py
│ ├── webhook_flask_echo_bot.py
│ ├── webhook_flask_heroku_echo.py
│ ├── webhook_tornado_echo_bot.py
│ └── webhook_twisted_echo_bot.py
├── pyproject.toml
├── requirements.txt
├── telebot/
│ ├── __init__.py
│ ├── apihelper.py
│ ├── async_telebot.py
│ ├── asyncio_filters.py
│ ├── asyncio_handler_backends.py
│ ├── asyncio_helper.py
│ ├── asyncio_storage/
│ │ ├── __init__.py
│ │ ├── base_storage.py
│ │ ├── memory_storage.py
│ │ ├── pickle_storage.py
│ │ └── redis_storage.py
│ ├── callback_data.py
│ ├── custom_filters.py
│ ├── ext/
│ │ ├── __init__.py
│ │ ├── aio/
│ │ │ ├── __init__.py
│ │ │ └── webhooks.py
│ │ ├── reloader.py
│ │ └── sync/
│ │ ├── __init__.py
│ │ └── webhooks.py
│ ├── formatting.py
│ ├── handler_backends.py
│ ├── py.typed
│ ├── service_utils.py
│ ├── states/
│ │ ├── __init__.py
│ │ ├── asyncio/
│ │ │ ├── __init__.py
│ │ │ ├── context.py
│ │ │ └── middleware.py
│ │ └── sync/
│ │ ├── __init__.py
│ │ ├── context.py
│ │ └── middleware.py
│ ├── storage/
│ │ ├── __init__.py
│ │ ├── base_storage.py
│ │ ├── memory_storage.py
│ │ ├── pickle_storage.py
│ │ └── redis_storage.py
│ ├── types.py
│ ├── util.py
│ └── version.py
└── tests/
├── __init__.py
├── test_apihelper_95.py
├── test_data/
│ └── record.ogg
├── test_handler_backends.py
├── test_telebot.py
└── test_types.py
Showing preview only (250K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (2829 symbols across 130 files)
FILE: examples/anonymous_bot.py
function start (line 24) | def start(message: types.Message):
function find (line 44) | def find(message: types.Message):
function stop (line 82) | def stop(message: types.Message):
function chatting (line 111) | def chatting(message: types.Message):
FILE: examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/filters.py
class CalendarCallbackFilter (line 10) | class CalendarCallbackFilter(AdvancedCustomFilter):
method check (line 13) | async def check(self, call: types.CallbackQuery, config: CallbackDataF...
class CalendarZoomCallbackFilter (line 17) | class CalendarZoomCallbackFilter(AdvancedCustomFilter):
method check (line 20) | async def check(self, call: types.CallbackQuery, config: CallbackDataF...
function bind_filters (line 24) | def bind_filters(bot: AsyncTeleBot):
FILE: examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/keyboards.py
function generate_calendar_days (line 12) | def generate_calendar_days(year: int, month: int):
function generate_calendar_months (line 67) | def generate_calendar_months(year: int):
FILE: examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/main.py
function start_command_handler (line 19) | async def start_command_handler(message: types.Message):
function calendar_command_handler (line 26) | async def calendar_command_handler(message: types.Message):
function calendar_action_handler (line 33) | async def calendar_action_handler(call: types.CallbackQuery):
function calendar_zoom_out_handler (line 42) | async def calendar_zoom_out_handler(call: types.CallbackQuery):
function callback_empty_field_handler (line 51) | async def callback_empty_field_handler(call: types.CallbackQuery):
FILE: examples/asynchronous_telebot/callback_data_examples/simple_products_example.py
function products_keyboard (line 22) | def products_keyboard():
function back_keyboard (line 36) | def back_keyboard():
class ProductsCallbackFilter (line 49) | class ProductsCallbackFilter(AdvancedCustomFilter):
method check (line 52) | async def check(self, call: types.CallbackQuery, config: CallbackDataF...
function products_command_handler (line 57) | async def products_command_handler(message: types.Message):
function product_one_callback (line 63) | async def product_one_callback(call: types.CallbackQuery):
function products_callback (line 69) | async def products_callback(call: types.CallbackQuery):
function back_callback (line 81) | async def back_callback(call: types.CallbackQuery):
FILE: examples/asynchronous_telebot/chat_join_request.py
function make_some (line 7) | async def make_some(message: telebot.types.ChatJoinRequest):
FILE: examples/asynchronous_telebot/chat_member_example.py
function chat_m (line 8) | async def chat_m(message: types.ChatMemberUpdated):
function my_chat_m (line 16) | async def my_chat_m(message: types.ChatMemberUpdated):
function delall (line 31) | async def delall(message: types.Message):
function set_tag (line 36) | async def set_tag(message: types.Message):
FILE: examples/asynchronous_telebot/continue_handling.py
function start (line 8) | async def start(message):
function start2 (line 13) | async def start2(message):
FILE: examples/asynchronous_telebot/custom_filters/admin_filter_example.py
function answer_for_admin (line 7) | async def answer_for_admin(message):
FILE: examples/asynchronous_telebot/custom_filters/advanced_text_filter.py
function hello_handler (line 17) | async def hello_handler(message: types.Message):
function hello_handler_ignore_case (line 22) | async def hello_handler_ignore_case(message: types.Message):
function contains_handler (line 27) | async def contains_handler(message: types.Message):
function contains_handler_ignore_case (line 32) | async def contains_handler_ignore_case(message: types.Message):
function starts_with_handler (line 37) | async def starts_with_handler(message: types.Message):
function starts_with_handler_ignore_case (line 42) | async def starts_with_handler_ignore_case(message: types.Message):
function ends_with_handler (line 47) | async def ends_with_handler(message: types.Message):
function ends_with_handler_ignore_case (line 52) | async def ends_with_handler_ignore_case(message: types.Message):
function send_callback (line 57) | async def send_callback(message: types.Message):
function callback_query_handler (line 68) | async def callback_query_handler(call: types.CallbackQuery):
function callback_query_handler_ignore_case (line 73) | async def callback_query_handler_ignore_case(call: types.CallbackQuery):
function send_poll (line 78) | async def send_poll(message: types.Message):
function poll_question_handler (line 84) | async def poll_question_handler(poll: types.Poll):
function poll_question_handler_ignore_case (line 89) | async def poll_question_handler_ignore_case(poll: types.Poll):
function multiple_patterns_handler (line 95) | async def multiple_patterns_handler(message: types.Message):
function multiple_starts_with_handler (line 101) | async def multiple_starts_with_handler(message: types.Message):
function multiple_ends_with_handler (line 107) | async def multiple_ends_with_handler(message: types.Message):
function ban_command_handler (line 114) | async def ban_command_handler(message: types.Message):
FILE: examples/asynchronous_telebot/custom_filters/general_custom_filters.py
class MainFilter (line 7) | class MainFilter(telebot.asyncio_filters.AdvancedCustomFilter):
method check (line 10) | async def check(message, text):
class IsAdmin (line 14) | class IsAdmin(telebot.asyncio_filters.SimpleCustomFilter):
method check (line 17) | async def check(message: telebot.types.Message):
function admin_rep (line 23) | async def admin_rep(message):
function not_admin (line 27) | async def not_admin(message):
function welcome_hi (line 31) | async def welcome_hi(message):
function bye_user (line 35) | async def bye_user(message):
FILE: examples/asynchronous_telebot/custom_filters/id_filter_example.py
function admin_rep (line 8) | async def admin_rep(message):
function not_admin (line 12) | async def not_admin(message):
FILE: examples/asynchronous_telebot/custom_filters/is_filter_example.py
function start_filter (line 10) | async def start_filter(message):
function text_filter (line 15) | async def text_filter(message):
FILE: examples/asynchronous_telebot/custom_filters/text_filter_example.py
function start_filter (line 8) | async def start_filter(message):
function text_filter (line 13) | async def text_filter(message):
FILE: examples/asynchronous_telebot/custom_states.py
class MyStates (line 13) | class MyStates(StatesGroup):
function start_ex (line 22) | async def start_ex(message: types.Message, state: StateContext):
function any_state (line 33) | async def any_state(message: types.Message, state: StateContext):
function name_get (line 44) | async def name_get(message: types.Message, state: StateContext):
function ask_color (line 55) | async def ask_color(message: types.Message, state: StateContext):
function ask_hobby (line 75) | async def ask_hobby(message: types.Message, state: StateContext):
function finish (line 97) | async def finish(message: types.Message, state: StateContext):
function age_incorrect (line 136) | async def age_incorrect(message: types.Message):
FILE: examples/asynchronous_telebot/detect_changes.py
function send_welcome (line 13) | async def send_welcome(message):
function echo_message (line 22) | async def echo_message(message):
FILE: examples/asynchronous_telebot/download_file_example.py
function new_message (line 11) | async def new_message(message: telebot.types.Message):
FILE: examples/asynchronous_telebot/echo_bot.py
function send_welcome (line 14) | async def send_welcome(message):
function echo_message (line 21) | async def echo_message(message):
FILE: examples/asynchronous_telebot/exception_handler.py
class MyExceptionHandler (line 10) | class MyExceptionHandler(ExceptionHandler):
method handle (line 11) | async def handle(self, exception):
function photo_send (line 19) | async def photo_send(message: telebot.types.Message):
FILE: examples/asynchronous_telebot/formatting_example.py
function start_message (line 8) | async def start_message(message):
FILE: examples/asynchronous_telebot/message_reaction_example.py
function send_reaction (line 24) | async def send_reaction(message):
function get_reactions (line 30) | async def get_reactions(message):
FILE: examples/asynchronous_telebot/middleware/flooding_middleware.py
class SimpleMiddleware (line 8) | class SimpleMiddleware(BaseMiddleware):
method __init__ (line 9) | def __init__(self, limit) -> None:
method pre_process (line 16) | async def pre_process(self, message, data):
method post_process (line 28) | async def post_process(self, message, data, exception):
function start (line 34) | async def start(message):
FILE: examples/asynchronous_telebot/middleware/i18n.py
class LanguageMiddleware (line 30) | class LanguageMiddleware(asyncio_handler_backends.BaseMiddleware):
method __init__ (line 31) | def __init__(self):
method pre_process (line 33) | async def pre_process(self, message, data):
method post_process (line 35) | async def post_process(self, message, data, exception):
function start (line 42) | async def start(message, data: dict):
FILE: examples/asynchronous_telebot/middleware/i18n_middleware_example/i18n_base_midddleware.py
class I18N (line 15) | class I18N(BaseMiddleware):
method __init__ (line 23) | def __init__(self, translations_path, domain_name: str):
method available_translations (line 32) | def available_translations(self):
method gettext (line 35) | def gettext(self, text: str, lang: str = None):
method ngettext (line 49) | def ngettext(self, singular: str, plural: str, lang: str = None, n=1):
method lazy_gettext (line 64) | def lazy_gettext(self, text: str, lang: str = None):
method lazy_ngettext (line 69) | def lazy_ngettext(self, singular: str, plural: str, lang: str = None, ...
method get_user_language (line 74) | async def get_user_language(self, obj):
method process_update_types (line 80) | def process_update_types(self) -> list:
method pre_process (line 86) | async def pre_process(self, message, data):
method post_process (line 93) | async def post_process(self, message, data, exception):
method find_translations (line 96) | def find_translations(self):
FILE: examples/asynchronous_telebot/middleware/i18n_middleware_example/keyboards.py
function languages_keyboard (line 4) | def languages_keyboard():
function clicker_keyboard (line 16) | def clicker_keyboard(_):
function menu_keyboard (line 26) | def menu_keyboard(_):
FILE: examples/asynchronous_telebot/middleware/i18n_middleware_example/main.py
class I18NMiddleware (line 63) | class I18NMiddleware(I18N):
method process_update_types (line 65) | def process_update_types(self) -> list:
method get_user_language (line 71) | async def get_user_language(self, obj: Union[types.Message, types.Call...
function start_handler (line 102) | async def start_handler(message: types.Message):
function change_language_handler (line 116) | async def change_language_handler(message: types.Message):
function language_handler (line 122) | async def language_handler(call: types.CallbackQuery):
function pluralization_handler (line 131) | async def pluralization_handler(message: types.Message):
function click_handler (line 147) | async def click_handler(call: types.CallbackQuery):
function menu_handler (line 167) | async def menu_handler(message: types.Message):
function return_user_id (line 181) | async def return_user_id(message: types.Message):
function return_user_id (line 186) | async def return_user_id(message: types.Message):
function return_user_id (line 195) | async def return_user_id(message: types.Message):
function missed_message (line 207) | async def missed_message(message: types.Message):
FILE: examples/asynchronous_telebot/mini_app.py
function start (line 19) | async def start(message):
function web_app (line 30) | async def web_app(message):
FILE: examples/asynchronous_telebot/multibot/handlers.py
function hello_handler (line 5) | async def hello_handler(message: types.Message, bot: AsyncTeleBot):
function echo_handler (line 9) | async def echo_handler(message: types.Message, bot: AsyncTeleBot):
function register_handlers (line 13) | def register_handlers(bot: AsyncTeleBot):
FILE: examples/asynchronous_telebot/multibot/main.py
function webhook (line 15) | async def webhook(request):
function add_bot (line 39) | async def add_bot(message: types.Message):
function main (line 50) | async def main():
FILE: examples/asynchronous_telebot/register_handler.py
function start_executor (line 4) | async def start_executor(message):
FILE: examples/asynchronous_telebot/send_file_example.py
function photo_send (line 11) | async def photo_send(message: telebot.types.Message):
function document_send (line 16) | async def document_send(message: telebot.types.Message):
function photos_send (line 21) | async def photos_send(message: telebot.types.Message):
FILE: examples/asynchronous_telebot/send_message_draft_example.py
function send_draft (line 9) | async def send_draft(message):
FILE: examples/asynchronous_telebot/set_command_example.py
function main (line 17) | async def main():
FILE: examples/asynchronous_telebot/skip_updates_example.py
function send_welcome (line 6) | async def send_welcome(message):
function echo_all (line 10) | async def echo_all(message):
FILE: examples/asynchronous_telebot/timer_bot_async.py
function beep (line 15) | async def beep(chat_id) -> None:
function send_welcome (line 22) | async def send_welcome(message):
function set_timer (line 27) | async def set_timer(message):
function unset_timer (line 37) | def unset_timer(message):
function scheduler (line 41) | async def scheduler():
function main (line 47) | async def main():
FILE: examples/asynchronous_telebot/update_listener.py
function update_listener (line 7) | async def update_listener(messages):
FILE: examples/asynchronous_telebot/webhooks/async_webhook_aiohttp_echo_bot.py
function handle (line 37) | async def handle(request):
function send_welcome (line 49) | async def send_welcome(message):
function echo_message (line 57) | async def echo_message(message):
function shutdown (line 62) | async def shutdown(app):
function setup (line 69) | async def setup():
FILE: examples/asynchronous_telebot/webhooks/run_webhooks.py
function send_welcome (line 27) | async def send_welcome(message):
function echo_message (line 36) | async def echo_message(message):
FILE: examples/asynchronous_telebot/webhooks/webhook_starlette_echo_bot.py
function send_welcome (line 34) | async def send_welcome(message: Message):
function echo_message (line 45) | async def echo_message(message: Message):
function telegram (line 53) | async def telegram(request: Request) -> Response:
function startup (line 62) | async def startup() -> None:
FILE: examples/callback_data_examples/advanced_calendar_example/filters.py
class CalendarCallbackFilter (line 9) | class CalendarCallbackFilter(AdvancedCustomFilter):
method check (line 12) | def check(self, call: types.CallbackQuery, config: CallbackDataFilter):
class CalendarZoomCallbackFilter (line 16) | class CalendarZoomCallbackFilter(AdvancedCustomFilter):
method check (line 19) | def check(self, call: types.CallbackQuery, config: CallbackDataFilter):
function bind_filters (line 23) | def bind_filters(bot: telebot.TeleBot):
FILE: examples/callback_data_examples/advanced_calendar_example/keyboards.py
function generate_calendar_days (line 12) | def generate_calendar_days(year: int, month: int):
function generate_calendar_months (line 67) | def generate_calendar_months(year: int):
FILE: examples/callback_data_examples/advanced_calendar_example/main.py
function start_command_handler (line 19) | def start_command_handler(message: types.Message):
function calendar_command_handler (line 26) | def calendar_command_handler(message: types.Message):
function calendar_action_handler (line 32) | def calendar_action_handler(call: types.CallbackQuery):
function calendar_zoom_out_handler (line 41) | def calendar_zoom_out_handler(call: types.CallbackQuery):
function callback_empty_field_handler (line 50) | def callback_empty_field_handler(call: types.CallbackQuery):
FILE: examples/callback_data_examples/simple_products_example.py
function products_keyboard (line 21) | def products_keyboard():
function back_keyboard (line 35) | def back_keyboard():
class ProductsCallbackFilter (line 48) | class ProductsCallbackFilter(AdvancedCustomFilter):
method check (line 51) | def check(self, call: types.CallbackQuery, config: CallbackDataFilter):
function products_command_handler (line 56) | def products_command_handler(message: types.Message):
function product_one_callback (line 62) | def product_one_callback(call: types.CallbackQuery):
function products_callback (line 68) | def products_callback(call: types.CallbackQuery):
function back_callback (line 80) | def back_callback(call: types.CallbackQuery):
FILE: examples/chat_join_request.py
function make_some (line 7) | def make_some(message: telebot.types.ChatJoinRequest):
FILE: examples/chat_member_example.py
function chat_m (line 8) | def chat_m(message: types.ChatMemberUpdated):
function my_chat_m (line 16) | def my_chat_m(message: types.ChatMemberUpdated):
function delall (line 31) | def delall(message: types.Message):
function set_tag (line 36) | def set_tag(message: types.Message):
FILE: examples/continue_handling.py
function start (line 8) | def start(message):
function start2 (line 13) | def start2(message):
FILE: examples/create_invite_link.py
function startmsg (line 12) | def startmsg(msg):
function newmember (line 17) | def newmember(msg):
FILE: examples/custom_filters/admin_filter_example.py
function answer_for_admin (line 7) | def answer_for_admin(message):
FILE: examples/custom_filters/advanced_text_filter.py
function hello_handler (line 15) | def hello_handler(message: types.Message):
function hello_handler_ignore_case (line 20) | def hello_handler_ignore_case(message: types.Message):
function contains_handler (line 25) | def contains_handler(message: types.Message):
function contains_handler_ignore_case (line 30) | def contains_handler_ignore_case(message: types.Message):
function starts_with_handler (line 35) | def starts_with_handler(message: types.Message):
function starts_with_handler_ignore_case (line 40) | def starts_with_handler_ignore_case(message: types.Message):
function ends_with_handler (line 45) | def ends_with_handler(message: types.Message):
function ends_with_handler_ignore_case (line 50) | def ends_with_handler_ignore_case(message: types.Message):
function send_callback (line 55) | def send_callback(message: types.Message):
function callback_query_handler (line 66) | def callback_query_handler(call: types.CallbackQuery):
function callback_query_handler_ignore_case (line 71) | def callback_query_handler_ignore_case(call: types.CallbackQuery):
function send_poll (line 76) | def send_poll(message: types.Message):
function poll_question_handler (line 82) | def poll_question_handler(poll: types.Poll):
function poll_question_handler_ignore_case (line 87) | def poll_question_handler_ignore_case(poll: types.Poll):
function multiple_patterns_handler (line 93) | def multiple_patterns_handler(message: types.Message):
function multiple_starts_with_handler (line 99) | def multiple_starts_with_handler(message: types.Message):
function multiple_ends_with_handler (line 105) | def multiple_ends_with_handler(message: types.Message):
function ban_command_handler (line 112) | def ban_command_handler(message: types.Message):
FILE: examples/custom_filters/general_custom_filters.py
class MainFilter (line 7) | class MainFilter(telebot.custom_filters.AdvancedCustomFilter):
method check (line 10) | def check(message, text):
class IsAdmin (line 14) | class IsAdmin(telebot.custom_filters.SimpleCustomFilter):
method check (line 17) | def check(message: telebot.types.Message):
function admin_rep (line 22) | def admin_rep(message):
function not_admin (line 26) | def not_admin(message):
function welcome_hi (line 30) | def welcome_hi(message):
function bye_user (line 34) | def bye_user(message):
FILE: examples/custom_filters/id_filter_example.py
function admin_rep (line 9) | def admin_rep(message):
function not_admin (line 13) | def not_admin(message):
FILE: examples/custom_filters/is_filter_example.py
function start_filter (line 9) | def start_filter(message):
function text_filter (line 14) | def text_filter(message):
FILE: examples/custom_filters/text_filter_example.py
function start_filter (line 9) | def start_filter(message):
function text_filter (line 14) | def text_filter(message):
FILE: examples/custom_states.py
class MyStates (line 14) | class MyStates(StatesGroup):
function start_ex (line 23) | def start_ex(message: types.Message, state: StateContext):
function any_state (line 34) | def any_state(message: types.Message, state: StateContext):
function name_get (line 45) | def name_get(message: types.Message, state: StateContext):
function ask_color (line 56) | def ask_color(message: types.Message, state: StateContext):
function ask_hobby (line 76) | def ask_hobby(message: types.Message, state: StateContext):
function finish (line 98) | def finish(message: types.Message, state: StateContext):
function age_incorrect (line 137) | def age_incorrect(message: types.Message):
FILE: examples/deep_linking.py
function extract_unique_code (line 40) | def extract_unique_code(text):
function in_storage (line 45) | def in_storage(unique_code):
function get_username_from_storage (line 50) | def get_username_from_storage(unique_code):
function save_chat_id (line 56) | def save_chat_id(chat_id, username):
function send_welcome (line 63) | def send_welcome(message):
FILE: examples/detailed_example/detailed_example.py
function get_user_step (line 31) | def get_user_step(uid):
function listener (line 42) | def listener(messages):
function command_start (line 58) | def command_start(m):
function command_help (line 72) | def command_help(m):
function command_long_text (line 83) | def command_long_text(m):
function command_image (line 93) | def command_image(m):
function msg_image_select (line 101) | def msg_image_select(m):
function command_text_hi (line 122) | def command_text_hi(m):
function command_default (line 128) | def command_default(m):
FILE: examples/detect_changes.py
function send_welcome (line 15) | def send_welcome(message):
function echo_message (line 24) | def echo_message(message):
FILE: examples/echo_bot.py
function send_welcome (line 15) | def send_welcome(message):
function echo_message (line 24) | def echo_message(message):
FILE: examples/formatting_example.py
function start_message (line 8) | def start_message(message):
FILE: examples/inline_example.py
function query_text (line 16) | def query_text(inline_query):
function query_photo (line 26) | def query_photo(inline_query):
function query_video (line 41) | def query_video(inline_query):
function default_query (line 55) | def default_query(inline_query):
function main_loop (line 63) | def main_loop():
FILE: examples/inline_keyboard_example.py
function gen_markup (line 9) | def gen_markup():
function callback_query (line 17) | def callback_query(call):
function message_handler (line 24) | def message_handler(message):
FILE: examples/message_reaction_example.py
function send_reaction (line 23) | def send_reaction(message):
function get_reactions (line 29) | def get_reactions(message):
FILE: examples/middleware/class_based/antiflood_middleware.py
class SimpleMiddleware (line 10) | class SimpleMiddleware(BaseMiddleware):
method __init__ (line 11) | def __init__(self, limit) -> None:
method pre_process (line 18) | def pre_process(self, message, data):
method post_process (line 30) | def post_process(self, message, data, exception):
function start (line 36) | def start(message): # you don't have to put data in handler.
FILE: examples/middleware/class_based/basic_example.py
class Middleware (line 10) | class Middleware(BaseMiddleware):
method __init__ (line 11) | def __init__(self):
method pre_process (line 13) | def pre_process(self, message, data):
method post_process (line 18) | def post_process(self, message, data, exception=None):
function start (line 24) | def start(message, data: dict): # you don't have to put data parameter i...
FILE: examples/middleware/class_based/i18n_middleware/i18n_base_middleware.py
class I18N (line 15) | class I18N(BaseMiddleware):
method __init__ (line 23) | def __init__(self, translations_path, domain_name: str):
method available_translations (line 32) | def available_translations(self):
method gettext (line 35) | def gettext(self, text: str, lang: str = None):
method ngettext (line 49) | def ngettext(self, singular: str, plural: str, lang: str = None, n=1):
method lazy_gettext (line 64) | def lazy_gettext(self, text: str, lang: str = None):
method lazy_ngettext (line 69) | def lazy_ngettext(self, singular: str, plural: str, lang: str = None, ...
method get_user_language (line 74) | def get_user_language(self, obj):
method process_update_types (line 80) | def process_update_types(self) -> list:
method pre_process (line 86) | def pre_process(self, message, data):
method post_process (line 94) | def post_process(self, message, data, exception):
method find_translations (line 97) | def find_translations(self):
FILE: examples/middleware/class_based/i18n_middleware/keyboards.py
function languages_keyboard (line 4) | def languages_keyboard():
function clicker_keyboard (line 16) | def clicker_keyboard(_):
function menu_keyboard (line 26) | def menu_keyboard(_):
FILE: examples/middleware/class_based/i18n_middleware/main.py
class I18NMiddleware (line 61) | class I18NMiddleware(I18N):
method process_update_types (line 63) | def process_update_types(self) -> list:
method get_user_language (line 69) | def get_user_language(self, obj: Union[types.Message, types.CallbackQu...
function start_handler (line 99) | def start_handler(message: types.Message):
function change_language_handler (line 113) | def change_language_handler(message: types.Message):
function language_handler (line 119) | def language_handler(call: types.CallbackQuery):
function pluralization_handler (line 128) | def pluralization_handler(message: types.Message):
function click_handler (line 144) | def click_handler(call: types.CallbackQuery):
function menu_handler (line 164) | def menu_handler(message: types.Message):
function return_user_id (line 178) | def return_user_id(message: types.Message):
function return_user_id (line 183) | def return_user_id(message: types.Message):
function return_user_id (line 192) | def return_user_id(message: types.Message):
function missed_message (line 204) | def missed_message(message: types.Message):
FILE: examples/middleware/function_based/i18n.py
function activate (line 31) | def activate(lang):
function _ (line 36) | def _(string):
function activate_language (line 44) | def activate_language(bot_instance, message):
function start (line 49) | def start(message):
FILE: examples/middleware/function_based/i18n_gettext/i18n_class.py
class I18N (line 6) | class I18N:
method __init__ (line 14) | def __init__(self, translations_path, domain_name: str):
method available_translations (line 20) | def available_translations(self):
method gettext (line 23) | def gettext(self, text: str, lang: str = None):
method ngettext (line 37) | def ngettext(self, singular: str, plural: str, lang: str = None, n=1):
method find_translations (line 53) | def find_translations(self):
FILE: examples/middleware/function_based/i18n_gettext/keyboards.py
function languages_keyboard (line 4) | def languages_keyboard():
function clicker_keyboard (line 16) | def clicker_keyboard(_):
FILE: examples/middleware/function_based/i18n_gettext/main.py
function set_contex_language (line 65) | def set_contex_language(bot_instance, message):
function start_handler (line 70) | def start_handler(message: types.Message):
function change_language_handler (line 83) | def change_language_handler(message: types.Message):
function language_handler (line 89) | def language_handler(call: types.CallbackQuery):
function pluralization_handler (line 99) | def pluralization_handler(message: types.Message):
function click_handler (line 114) | def click_handler(call: types.CallbackQuery):
FILE: examples/middleware/function_based/session.py
function get_or_create_session (line 33) | def get_or_create_session(user_id):
function set_session (line 45) | def set_session(bot_instance, message):
function start (line 50) | def start(message):
function start (line 56) | def start(message):
FILE: examples/mini_app.py
function start (line 18) | def start(message):
function web_app (line 29) | def web_app(message):
FILE: examples/mini_app_web/script.js
class ModifyStyle (line 4) | class ModifyStyle{
method constructor (line 5) | constructor(element) {
method disableButton (line 8) | disableButton() {
method enableButton (line 13) | enableButton() {
class TableModify (line 19) | class TableModify{
method constructor (line 20) | constructor(element) {
method addElements (line 23) | addElements(element_1, element_2) {
method removeElement (line 26) | removeElement(id) {
FILE: examples/multibot/handlers.py
function hello_handler (line 4) | def hello_handler(message: types.Message, bot: TeleBot):
function echo_handler (line 8) | def echo_handler(message: types.Message, bot: TeleBot):
function register_handlers (line 12) | def register_handlers(bot: TeleBot):
FILE: examples/multibot/main.py
function webhook (line 14) | def webhook(token: str):
function add_bot (line 34) | def add_bot(message: types.Message):
FILE: examples/payments_example.py
function command_start (line 18) | def command_start(message):
function command_terms (line 26) | def command_terms(message):
function command_pay (line 36) | def command_pay(message):
function shipping (line 58) | def shipping(shipping_query):
function checkout (line 65) | def checkout(pre_checkout_query):
function got_payment (line 72) | def got_payment(message):
FILE: examples/poll_example.py
function create_poll (line 12) | def create_poll(message):
function handle_poll (line 27) | def handle_poll(poll):
FILE: examples/register_handler.py
function start_executor (line 7) | def start_executor(message):
FILE: examples/reply_keyboard_markup_example.py
function keyboard (line 11) | def keyboard(key_type="Normal"):
function start_message (line 44) | def start_message(message):
function all_messages (line 48) | def all_messages(message):
FILE: examples/send_message_draft_example.py
function send_draft (line 9) | def send_draft(message):
FILE: examples/serverless/aws_lambda_function.py
function process_event (line 21) | def process_event(event):
function lambda_handler (line 30) | def lambda_handler(event, context):
function send_welcome (line 40) | def send_welcome(message):
function echo_message (line 48) | def echo_message(message):
FILE: examples/serverless/flask_google_cloud_bot/main.py
function start (line 44) | def start(message):
function echo_message (line 49) | def echo_message(message):
function getMessage (line 54) | def getMessage():
function webhook (line 62) | def webhook():
FILE: examples/skip_updates_example.py
function send_welcome (line 6) | def send_welcome(message):
function echo_all (line 10) | def echo_all(message):
FILE: examples/stars_payment.py
function send_welcome (line 17) | def send_welcome(message):
function handle_product_selection (line 32) | def handle_product_selection(message):
function process_pre_checkout_query (line 54) | def process_pre_checkout_query(pre_checkout_query):
function handle_successful_payment (line 59) | def handle_successful_payment(message):
FILE: examples/step_example.py
class User (line 16) | class User:
method __init__ (line 17) | def __init__(self, name):
function send_welcome (line 25) | def send_welcome(message):
function process_name_step (line 33) | def process_name_step(message):
function process_age_step (line 45) | def process_age_step(message):
function process_sex_step (line 63) | def process_sex_step(message):
FILE: examples/telebot_bot/telebot_bot.py
function is_api_group (line 38) | def is_api_group(chat_id):
function on_user_joins (line 43) | def on_user_joins(message):
function on_info (line 58) | def on_info(message):
function on_ping (line 67) | def on_ping(message):
function on_start (line 72) | def on_start(message):
function listener (line 78) | def listener(messages):
FILE: examples/timer_bot.py
function send_welcome (line 14) | def send_welcome(message):
function beep (line 18) | def beep(chat_id) -> None:
function set_timer (line 24) | def set_timer(message):
function unset_timer (line 34) | def unset_timer(message):
FILE: examples/webhook_examples/run_webhooks.py
function send_welcome (line 28) | def send_welcome(message):
function echo_message (line 37) | def echo_message(message):
FILE: examples/webhook_examples/webhook_aiohttp_echo_bot.py
function handle (line 43) | async def handle(request):
function send_welcome (line 58) | def send_welcome(message):
function echo_message (line 66) | def echo_message(message):
FILE: examples/webhook_examples/webhook_cherrypy_echo_bot.py
class WebhookServer (line 40) | class WebhookServer(object):
method index (line 42) | def index(self):
function send_welcome (line 57) | def send_welcome(message):
function echo_message (line 65) | def echo_message(message):
FILE: examples/webhook_examples/webhook_cpython_echo_bot.py
class WebhookHandler (line 46) | class WebhookHandler(BaseHTTPRequestHandler):
method do_HEAD (line 49) | def do_HEAD(self):
method do_GET (line 53) | def do_GET(self):
method do_POST (line 57) | def do_POST(self):
function send_welcome (line 76) | def send_welcome(message):
function echo_message (line 84) | def echo_message(message):
FILE: examples/webhook_examples/webhook_fastapi_echo_bot.py
function process_webhook (line 41) | def process_webhook(update: dict):
function send_welcome (line 53) | def send_welcome(message):
function echo_message (line 63) | def echo_message(message):
FILE: examples/webhook_examples/webhook_flask_echo_bot.py
function index (line 44) | def index():
function webhook (line 50) | def webhook():
function send_welcome (line 62) | def send_welcome(message):
function echo_message (line 70) | def echo_message(message):
FILE: examples/webhook_examples/webhook_flask_heroku_echo.py
function start (line 13) | def start(message):
function echo_message (line 18) | def echo_message(message):
function getMessage (line 23) | def getMessage():
function webhook (line 31) | def webhook():
FILE: examples/webhook_examples/webhook_tornado_echo_bot.py
class Root (line 36) | class Root(tornado.web.RequestHandler):
method data_received (line 37) | def data_received(self, chunk: bytes) -> Optional[Awaitable[None]]:
method get (line 40) | def get(self):
class WebhookServ (line 45) | class WebhookServ(tornado.web.RequestHandler):
method data_received (line 46) | def data_received(self, chunk: bytes) -> Optional[Awaitable[None]]:
method get (line 49) | def get(self):
method post (line 53) | def post(self):
function signal_handler (line 73) | def signal_handler(signum, frame):
function try_exit (line 79) | def try_exit():
function send_welcome (line 89) | def send_welcome(message):
FILE: examples/webhook_examples/webhook_twisted_echo_bot.py
function send_welcome (line 44) | def send_welcome(message):
function echo_message (line 52) | def echo_message(message):
class WebhookHandler (line 65) | class WebhookHandler(Resource):
method render_POST (line 67) | def render_POST(self, request: Request):
FILE: telebot/__init__.py
class Handler (line 59) | class Handler:
method __init__ (line 64) | def __init__(self, callback, *args, **kwargs):
method __getitem__ (line 69) | def __getitem__(self, item):
class ExceptionHandler (line 73) | class ExceptionHandler:
method handle (line 79) | def handle(self, exception):
class TeleBot (line 83) | class TeleBot:
method __init__ (line 165) | def __init__(
method user (line 297) | def user(self) -> types.User:
method enable_save_next_step_handlers (line 309) | def enable_save_next_step_handlers(self, delay: Optional[int]=120, fil...
method enable_saving_states (line 328) | def enable_saving_states(self, filename: Optional[str]="./.state-save/...
method enable_save_reply_handlers (line 343) | def enable_save_reply_handlers(self, delay=120, filename="./.handler-s...
method disable_save_next_step_handlers (line 360) | def disable_save_next_step_handlers(self):
method disable_save_reply_handlers (line 371) | def disable_save_reply_handlers(self):
method load_next_step_handlers (line 382) | def load_next_step_handlers(self, filename="./.handler-saves/step.save...
method load_reply_handlers (line 400) | def load_reply_handlers(self, filename="./.handler-saves/reply.save", ...
method set_webhook (line 417) | def set_webhook(self, url: Optional[str]=None, certificate: Optional[U...
method run_webhooks (line 476) | def run_webhooks(self,
method delete_webhook (line 582) | def delete_webhook(self, drop_pending_updates: Optional[bool]=None, ti...
method get_webhook_info (line 602) | def get_webhook_info(self, timeout: Optional[int]=None) -> types.Webho...
method remove_webhook (line 620) | def remove_webhook(self) -> bool:
method get_updates (line 630) | def get_updates(self, offset: Optional[int]=None, limit: Optional[int]...
method __skip_updates (line 665) | def __skip_updates(self):
method __retrieve_updates (line 675) | def __retrieve_updates(self, timeout=20, long_polling_timeout=20, allo...
method process_new_updates (line 693) | def process_new_updates(self, updates: List[types.Update]):
method process_new_messages (line 861) | def process_new_messages(self, new_messages):
method process_new_edited_messages (line 870) | def process_new_edited_messages(self, new_edited_message):
method process_new_channel_posts (line 876) | def process_new_channel_posts(self, new_channel_post):
method process_new_edited_channel_posts (line 882) | def process_new_edited_channel_posts(self, new_edited_channel_post):
method process_new_message_reaction (line 888) | def process_new_message_reaction(self, new_message_reactions):
method process_new_message_reaction_count (line 894) | def process_new_message_reaction_count(self, new_message_reaction_coun...
method process_new_inline_query (line 900) | def process_new_inline_query(self, new_inline_queries):
method process_new_chosen_inline_query (line 906) | def process_new_chosen_inline_query(self, new_chosen_inline_queries):
method process_new_callback_query (line 912) | def process_new_callback_query(self, new_callback_queries):
method process_new_shipping_query (line 918) | def process_new_shipping_query(self, new_shipping_queries):
method process_new_pre_checkout_query (line 924) | def process_new_pre_checkout_query(self, new_pre_checkout_queries):
method process_new_poll (line 930) | def process_new_poll(self, new_polls):
method process_new_poll_answer (line 936) | def process_new_poll_answer(self, new_poll_answers):
method process_new_my_chat_member (line 942) | def process_new_my_chat_member(self, new_my_chat_members):
method process_new_chat_member (line 948) | def process_new_chat_member(self, new_chat_members):
method process_new_chat_join_request (line 954) | def process_new_chat_join_request(self, new_chat_join_request):
method process_new_chat_boost (line 960) | def process_new_chat_boost(self, new_chat_boosts):
method process_new_removed_chat_boost (line 966) | def process_new_removed_chat_boost(self, new_removed_chat_boosts):
method process_new_business_connection (line 972) | def process_new_business_connection(self, new_business_connections):
method process_new_business_message (line 978) | def process_new_business_message(self, new_business_messages):
method process_new_edited_business_message (line 984) | def process_new_edited_business_message(self, new_edited_business_mess...
method process_new_deleted_business_messages (line 990) | def process_new_deleted_business_messages(self, new_deleted_business_m...
method process_new_purchased_paid_media (line 996) | def process_new_purchased_paid_media(self, new_purchased_paid_media):
method process_middlewares (line 1002) | def process_middlewares(self, update):
method __notify_update (line 1025) | def __notify_update(self, new_messages):
method _setup_change_detector (line 1034) | def _setup_change_detector(self, path_to_watch: str):
method __hide_token (line 1055) | def __hide_token(self, message: str) -> str:
method infinity_polling (line 1062) | def infinity_polling(self, timeout: Optional[int]=20, skip_pending: Op...
method polling (line 1126) | def polling(self, non_stop: Optional[bool]=False, skip_pending: Option...
method _handle_exception (line 1204) | def _handle_exception(self, exception: Exception) -> bool:
method __threaded_polling (line 1211) | def __threaded_polling(self, non_stop = False, interval = 0, timeout =...
method __non_threaded_polling (line 1286) | def __non_threaded_polling(self, non_stop=False, interval=0, timeout=N...
method _exec_task (line 1334) | def _exec_task(self, task, *args, **kwargs):
method stop_polling (line 1346) | def stop_polling(self):
method stop_bot (line 1355) | def stop_bot(self):
method set_update_listener (line 1364) | def set_update_listener(self, listener: Callable):
method get_me (line 1374) | def get_me(self) -> types.User:
method get_file (line 1386) | def get_file(self, file_id: Optional[str]) -> types.File:
method get_file_url (line 1406) | def get_file_url(self, file_id: Optional[str]) -> str:
method download_file (line 1419) | def download_file(self, file_path: str) -> bytes:
method log_out (line 1432) | def log_out(self) -> bool:
method close (line 1449) | def close(self) -> bool:
method set_message_reaction (line 1463) | def set_message_reaction(self, chat_id: Union[int, str], message_id: i...
method get_user_profile_photos (line 1490) | def get_user_profile_photos(self, user_id: int, offset: Optional[int]=...
method get_user_profile_audios (line 1515) | def get_user_profile_audios(self, user_id: int, offset: Optional[int]=...
method set_user_emoji_status (line 1538) | def set_user_emoji_status(self, user_id: int, emoji_status_custom_emoj...
method get_chat (line 1559) | def get_chat(self, chat_id: Union[int, str]) -> types.ChatFullInfo:
method leave_chat (line 1577) | def leave_chat(self, chat_id: Union[int, str]) -> bool:
method get_chat_administrators (line 1591) | def get_chat_administrators(self, chat_id: Union[int, str]) -> List[ty...
method get_chat_members_count (line 1609) | def get_chat_members_count(self, chat_id: Union[int, str]) -> int:
method get_chat_member_count (line 1629) | def get_chat_member_count(self, chat_id: Union[int, str]) -> int:
method set_chat_sticker_set (line 1644) | def set_chat_sticker_set(self, chat_id: Union[int, str], sticker_set_n...
method delete_chat_sticker_set (line 1664) | def delete_chat_sticker_set(self, chat_id: Union[int, str]) -> bool:
method get_chat_member (line 1681) | def get_chat_member(self, chat_id: Union[int, str], user_id: int) -> t...
method send_message (line 1701) | def send_message(
method forward_message (line 1845) | def forward_message(
method copy_message (line 1912) | def copy_message(
method approve_suggested_post (line 2044) | def approve_suggested_post(self, chat_id: int, message_id: int, send_d...
method decline_suggested_post (line 2066) | def decline_suggested_post(self, chat_id: int, message_id: int, commen...
method delete_message (line 2088) | def delete_message(self, chat_id: Union[int, str], message_id: int,
method delete_messages (line 2118) | def delete_messages(self, chat_id: Union[int, str], message_ids: List[...
method forward_messages (line 2136) | def forward_messages(self, chat_id: Union[str, int], from_chat_id: Uni...
method copy_messages (line 2182) | def copy_messages(self, chat_id: Union[str, int], from_chat_id: Union[...
method send_checklist (line 2233) | def send_checklist(
method edit_message_checklist (line 2286) | def edit_message_checklist(
method send_dice (line 2318) | def send_dice(
method send_photo (line 2426) | def send_photo(
method send_audio (line 2555) | def send_audio(
method send_voice (line 2704) | def send_voice(
method send_document (line 2827) | def send_document(
method send_sticker (line 2979) | def send_sticker(
method send_video (line 3100) | def send_video(
method send_animation (line 3278) | def send_animation(
method send_video_note (line 3435) | def send_video_note(
method send_paid_media (line 3564) | def send_paid_media(
method send_media_group (line 3645) | def send_media_group(
method send_location (line 3746) | def send_location(
method edit_message_live_location (line 3872) | def edit_message_live_location(
method stop_message_live_location (line 3940) | def stop_message_live_location(
method send_venue (line 3982) | def send_venue(
method send_contact (line 4116) | def send_contact(
method send_message_draft (line 4231) | def send_message_draft(
method send_chat_action (line 4270) | def send_chat_action(
method kick_chat_member (line 4309) | def kick_chat_member(
method ban_chat_member (line 4320) | def ban_chat_member(
method unban_chat_member (line 4355) | def unban_chat_member(
method restrict_chat_member (line 4383) | def restrict_chat_member(
method promote_chat_member (line 4472) | def promote_chat_member(
method set_chat_administrator_custom_title (line 4589) | def set_chat_administrator_custom_title(
method set_chat_member_tag (line 4614) | def set_chat_member_tag(
method ban_chat_sender_chat (line 4638) | def ban_chat_sender_chat(self, chat_id: Union[int, str], sender_chat_i...
method unban_chat_sender_chat (line 4661) | def unban_chat_sender_chat(self, chat_id: Union[int, str], sender_chat...
method set_chat_permissions (line 4682) | def set_chat_permissions(
method create_chat_invite_link (line 4712) | def create_chat_invite_link(
method edit_chat_invite_link (line 4750) | def edit_chat_invite_link(
method create_chat_subscription_invite_link (line 4789) | def create_chat_subscription_invite_link(
method edit_chat_subscription_invite_link (line 4821) | def edit_chat_subscription_invite_link(
method revoke_chat_invite_link (line 4846) | def revoke_chat_invite_link(
method export_chat_invite_link (line 4870) | def export_chat_invite_link(self, chat_id: Union[int, str]) -> str:
method approve_chat_join_request (line 4887) | def approve_chat_join_request(self, chat_id: Union[str, int], user_id:...
method decline_chat_join_request (line 4908) | def decline_chat_join_request(self, chat_id: Union[str, int], user_id:...
method set_chat_photo (line 4929) | def set_chat_photo(self, chat_id: Union[int, str], photo: Any) -> bool:
method delete_chat_photo (line 4951) | def delete_chat_photo(self, chat_id: Union[int, str]) -> bool:
method get_my_commands (line 4970) | def get_my_commands(self, scope: Optional[types.BotCommandScope]=None,
method set_my_name (line 4994) | def set_my_name(self, name: Optional[str]=None, language_code: Optiona...
method get_my_name (line 5012) | def get_my_name(self, language_code: Optional[str]=None):
method set_my_description (line 5029) | def set_my_description(self, description: Optional[str]=None, language...
method get_my_description (line 5051) | def get_my_description(self, language_code: Optional[str]=None):
method set_my_short_description (line 5067) | def set_my_short_description(self, short_description:Optional[str]=Non...
method get_my_short_description (line 5088) | def get_my_short_description(self, language_code: Optional[str]=None):
method set_my_profile_photo (line 5103) | def set_my_profile_photo(self, photo: types.InputProfilePhoto) -> bool:
method remove_my_profile_photo (line 5117) | def remove_my_profile_photo(self) -> bool:
method set_chat_menu_button (line 5129) | def set_chat_menu_button(self, chat_id: Union[int, str]=None, menu_but...
method get_chat_menu_button (line 5150) | def get_chat_menu_button(self, chat_id: Union[int, str]=None) -> types...
method set_my_default_administrator_rights (line 5169) | def set_my_default_administrator_rights(self, rights: types.ChatAdmini...
method get_my_default_administrator_rights (line 5194) | def get_my_default_administrator_rights(self, for_channels: Optional[b...
method get_business_connection (line 5212) | def get_business_connection(self, business_connection_id: str) -> type...
method set_my_commands (line 5231) | def set_my_commands(self, commands: List[types.BotCommand],
method delete_my_commands (line 5257) | def delete_my_commands(self, scope: Optional[types.BotCommandScope]=None,
method set_chat_title (line 5281) | def set_chat_title(self, chat_id: Union[int, str], title: str) -> bool:
method set_chat_description (line 5304) | def set_chat_description(self, chat_id: Union[int, str], description: ...
method pin_chat_message (line 5324) | def pin_chat_message(
method unpin_chat_message (line 5357) | def unpin_chat_message(self, chat_id: Union[int, str], message_id: Opt...
method unpin_all_chat_messages (line 5381) | def unpin_all_chat_messages(self, chat_id: Union[int, str]) -> bool:
method edit_message_text (line 5399) | def edit_message_text(
method edit_message_media (line 5483) | def edit_message_media(
method edit_message_reply_markup (line 5531) | def edit_message_reply_markup(
method send_game (line 5573) | def send_game(
method set_game_score (line 5667) | def set_game_score(
method get_game_high_scores (line 5712) | def get_game_high_scores(
method send_invoice (line 5746) | def send_invoice(
method create_invoice_link (line 5936) | def create_invoice_link(self,
method send_poll (line 6054) | def send_poll(
method stop_poll (line 6222) | def stop_poll(
method answer_shipping_query (line 6251) | def answer_shipping_query(
method answer_pre_checkout_query (line 6280) | def answer_pre_checkout_query(
method get_my_star_balance (line 6310) | def get_my_star_balance(self) -> types.StarAmount:
method get_star_transactions (line 6322) | def get_star_transactions(self, offset: Optional[int]=None, limit: Opt...
method refund_star_payment (line 6342) | def refund_star_payment(self, user_id: int, telegram_payment_charge_id...
method edit_user_star_subscription (line 6359) | def edit_user_star_subscription(self, user_id: int, telegram_payment_c...
method edit_message_caption (line 6379) | def edit_message_caption(
method reply_to (line 6440) | def reply_to(self, message: types.Message, text: str, **kwargs) -> typ...
method answer_inline_query (line 6474) | def answer_inline_query(
method unpin_all_general_forum_topic_messages (line 6533) | def unpin_all_general_forum_topic_messages(self, chat_id: Union[int, s...
method answer_callback_query (line 6551) | def answer_callback_query(
method get_user_chat_boosts (line 6584) | def get_user_chat_boosts(self, chat_id: Union[int, str], user_id: int)...
method set_sticker_set_thumbnail (line 6604) | def set_sticker_set_thumbnail(self, name: str, user_id: int, thumbnail...
method set_sticker_set_thumb (line 6639) | def set_sticker_set_thumb(self, name: str, user_id: int, thumb: Union[...
method get_sticker_set (line 6662) | def get_sticker_set(self, name: str) -> types.StickerSet:
method get_custom_emoji_stickers (line 6678) | def get_custom_emoji_stickers(self, custom_emoji_ids: List[str]) -> Li...
method set_sticker_keywords (line 6693) | def set_sticker_keywords(self, sticker: str, keywords: List[str]=None)...
method set_sticker_mask_position (line 6711) | def set_sticker_mask_position(self, sticker: str, mask_position: types...
method set_custom_emoji_sticker_set_thumbnail (line 6729) | def set_custom_emoji_sticker_set_thumbnail(self, name: str, custom_emo...
method set_sticker_set_title (line 6746) | def set_sticker_set_title(self, name: str, title: str) -> bool:
method delete_sticker_set (line 6763) | def delete_sticker_set(self, name:str) -> bool:
method send_gift (line 6775) | def send_gift(self, user_id: Optional[Union[str, int]] = None, gift_id...
method verify_user (line 6817) | def verify_user(self, user_id: int, custom_description: Optional[str]=...
method verify_chat (line 6834) | def verify_chat(self, chat_id: Union[int, str], custom_description: Op...
method remove_user_verification (line 6851) | def remove_user_verification(self, user_id: int) -> bool:
method remove_chat_verification (line 6866) | def remove_chat_verification(self, chat_id: int) -> bool:
method read_business_message (line 6880) | def read_business_message(self, business_connection_id: str, chat_id: ...
method delete_business_messages (line 6900) | def delete_business_messages(self, business_connection_id: str, messag...
method set_business_account_name (line 6917) | def set_business_account_name(self, business_connection_id: str, first...
method set_business_account_username (line 6937) | def set_business_account_username(self, business_connection_id: str, u...
method set_business_account_bio (line 6955) | def set_business_account_bio(self, business_connection_id: str, bio: O...
method set_business_account_gift_settings (line 6972) | def set_business_account_gift_settings(
method get_business_account_star_balance (line 6994) | def get_business_account_star_balance(self, business_connection_id: st...
method transfer_business_account_stars (line 7010) | def transfer_business_account_stars(self, business_connection_id: str,...
method get_business_account_gifts (line 7027) | def get_business_account_gifts(
method get_user_gifts (line 7111) | def get_user_gifts(
method get_chat_gifts (line 7170) | def get_chat_gifts(
method convert_gift_to_stars (line 7240) | def convert_gift_to_stars(self, business_connection_id: str, owned_gif...
method upgrade_gift (line 7257) | def upgrade_gift(
method transfer_gift (line 7289) | def transfer_gift(
method post_story (line 7321) | def post_story(
method repost_story (line 7377) | def repost_story(
method edit_story (line 7421) | def edit_story(
method delete_story (line 7468) | def delete_story(self, business_connection_id: str, story_id: int) -> ...
method gift_premium_subscription (line 7485) | def gift_premium_subscription(
method set_business_account_profile_photo (line 7521) | def set_business_account_profile_photo(
method remove_business_account_profile_photo (line 7544) | def remove_business_account_profile_photo(
method get_available_gifts (line 7563) | def get_available_gifts(self) -> types.Gifts:
method replace_sticker_in_set (line 7576) | def replace_sticker_in_set(self, user_id: int, name: str, old_sticker:...
method set_sticker_emoji_list (line 7601) | def set_sticker_emoji_list(self, sticker: str, emoji_list: List[str]) ...
method upload_sticker_file (line 7618) | def upload_sticker_file(self, user_id: int, png_sticker: Union[Any, st...
method create_new_sticker_set (line 7652) | def create_new_sticker_set(
method add_sticker_to_set (line 7748) | def add_sticker_to_set(
method set_sticker_position_in_set (line 7812) | def set_sticker_position_in_set(self, sticker: str, position: int) -> ...
method delete_sticker_from_set (line 7830) | def delete_sticker_from_set(self, sticker: str) -> bool:
method create_forum_topic (line 7843) | def create_forum_topic(self,
method edit_forum_topic (line 7874) | def edit_forum_topic(
method close_forum_topic (line 7908) | def close_forum_topic(self, chat_id: Union[str, int], message_thread_i...
method reopen_forum_topic (line 7928) | def reopen_forum_topic(self, chat_id: Union[str, int], message_thread_...
method delete_forum_topic (line 7948) | def delete_forum_topic(self, chat_id: Union[str, int], message_thread_...
method unpin_all_forum_topic_messages (line 7968) | def unpin_all_forum_topic_messages(self, chat_id: Union[str, int], mes...
method edit_general_forum_topic (line 7988) | def edit_general_forum_topic(self, chat_id: Union[int, str], name: str...
method close_general_forum_topic (line 8005) | def close_general_forum_topic(self, chat_id: Union[int, str]) -> bool:
method reopen_general_forum_topic (line 8019) | def reopen_general_forum_topic(self, chat_id: Union[int, str]) -> bool:
method hide_general_forum_topic (line 8033) | def hide_general_forum_topic(self, chat_id: Union[int, str]) -> bool:
method unhide_general_forum_topic (line 8047) | def unhide_general_forum_topic(self, chat_id: Union[int, str]) -> bool:
method get_forum_topic_icon_stickers (line 8061) | def get_forum_topic_icon_stickers(self) -> List[types.Sticker]:
method answer_web_app_query (line 8074) | def answer_web_app_query(self, web_app_query_id: str, result: types.In...
method save_prepared_inline_message (line 8094) | def save_prepared_inline_message(
method register_for_reply (line 8131) | def register_for_reply(self, message: types.Message, callback: Callabl...
method register_for_reply_by_message_id (line 8152) | def register_for_reply_by_message_id(
method _notify_reply_handlers (line 8174) | def _notify_reply_handlers(self, new_messages) -> None:
method register_next_step_handler (line 8189) | def register_next_step_handler(self, message: types.Message, callback:...
method setup_middleware (line 8210) | def setup_middleware(self, middleware: BaseMiddleware):
method set_state (line 8233) | def set_state(self, user_id: int, state: Union[str, State], chat_id: O...
method reset_data (line 8282) | def reset_data(self, user_id: int, chat_id: Optional[int]=None,
method delete_state (line 8314) | def delete_state(self, user_id: int, chat_id: Optional[int]=None, busi...
method retrieve_data (line 8349) | def retrieve_data(self, user_id: int, chat_id: Optional[int]=None, bus...
method get_state (line 8380) | def get_state(self, user_id: int, chat_id: Optional[int]=None,
method add_data (line 8418) | def add_data(self, user_id: int, chat_id: Optional[int]=None,
method register_next_step_handler_by_chat_id (line 8453) | def register_next_step_handler_by_chat_id(
method clear_step_handler (line 8475) | def clear_step_handler(self, message: types.Message) -> None:
method clear_step_handler_by_chat_id (line 8487) | def clear_step_handler_by_chat_id(self, chat_id: Union[int, str]) -> N...
method clear_reply_handlers (line 8499) | def clear_reply_handlers(self, message: types.Message) -> None:
method clear_reply_handlers_by_message_id (line 8511) | def clear_reply_handlers_by_message_id(self, message_id: int) -> None:
method _notify_next_handlers (line 8523) | def _notify_next_handlers(self, new_messages):
method _build_handler_dict (line 8543) | def _build_handler_dict(handler, pass_bot=False, **filters):
method middleware_handler (line 8560) | def middleware_handler(self, update_types: Optional[List[str]]=None):
method add_middleware_handler (line 8597) | def add_middleware_handler(self, handler, update_types=None):
method register_middleware_handler (line 8625) | def register_middleware_handler(self, callback, update_types=None):
method check_commands_input (line 8650) | def check_commands_input(commands, method_name):
method check_regexp_input (line 8659) | def check_regexp_input(regexp, method_name):
method message_handler (line 8667) | def message_handler(
method add_message_handler (line 8760) | def add_message_handler(self, handler_dict):
method register_message_handler (line 8773) | def register_message_handler(self, callback: Callable, content_types: ...
method edited_message_handler (line 8830) | def edited_message_handler(self, commands=None, regexp=None, func=None...
method add_edited_message_handler (line 8885) | def add_edited_message_handler(self, handler_dict):
method register_edited_message_handler (line 8898) | def register_edited_message_handler(self, callback: Callable, content_...
method channel_post_handler (line 8954) | def channel_post_handler(self, commands=None, regexp=None, func=None, ...
method add_channel_post_handler (line 9005) | def add_channel_post_handler(self, handler_dict):
method register_channel_post_handler (line 9018) | def register_channel_post_handler(
method edited_channel_post_handler (line 9070) | def edited_channel_post_handler(self, commands=None, regexp=None, func...
method add_edited_channel_post_handler (line 9121) | def add_edited_channel_post_handler(self, handler_dict):
method register_edited_channel_post_handler (line 9134) | def register_edited_channel_post_handler(
method message_reaction_handler (line 9186) | def message_reaction_handler(self, func=None, **kwargs):
method add_message_reaction_handler (line 9206) | def add_message_reaction_handler(self, handler_dict):
method register_message_reaction_handler (line 9219) | def register_message_reaction_handler(self, callback: Callable, func: ...
method message_reaction_count_handler (line 9240) | def message_reaction_count_handler(self, func=None, **kwargs):
method add_message_reaction_count_handler (line 9260) | def add_message_reaction_count_handler(self, handler_dict):
method register_message_reaction_count_handler (line 9273) | def register_message_reaction_count_handler(self, callback: Callable, ...
method inline_handler (line 9294) | def inline_handler(self, func=None, **kwargs):
method add_inline_handler (line 9314) | def add_inline_handler(self, handler_dict):
method register_inline_handler (line 9327) | def register_inline_handler(self, callback: Callable, func: Callable, ...
method chosen_inline_handler (line 9348) | def chosen_inline_handler(self, func, **kwargs):
method add_chosen_inline_handler (line 9369) | def add_chosen_inline_handler(self, handler_dict):
method register_chosen_inline_handler (line 9382) | def register_chosen_inline_handler(self, callback: Callable, func: Cal...
method callback_query_handler (line 9403) | def callback_query_handler(self, func=None, **kwargs):
method add_callback_query_handler (line 9423) | def add_callback_query_handler(self, handler_dict):
method register_callback_query_handler (line 9436) | def register_callback_query_handler(self, callback: Callable, func: Ca...
method shipping_query_handler (line 9457) | def shipping_query_handler(self, func, **kwargs):
method add_shipping_query_handler (line 9477) | def add_shipping_query_handler(self, handler_dict):
method register_shipping_query_handler (line 9490) | def register_shipping_query_handler(self, callback: Callable, func: Ca...
method pre_checkout_query_handler (line 9511) | def pre_checkout_query_handler(self, func, **kwargs):
method add_pre_checkout_query_handler (line 9531) | def add_pre_checkout_query_handler(self, handler_dict):
method register_pre_checkout_query_handler (line 9544) | def register_pre_checkout_query_handler(self, callback: Callable, func...
method purchased_paid_media_handler (line 9563) | def purchased_paid_media_handler(self, func=None, **kwargs):
method add_purchased_paid_media_handler (line 9581) | def add_purchased_paid_media_handler(self, handler_dict):
method register_purchased_paid_media_handler (line 9593) | def register_purchased_paid_media_handler(self, callback: Callable, fu...
method poll_handler (line 9613) | def poll_handler(self, func, **kwargs):
method add_poll_handler (line 9632) | def add_poll_handler(self, handler_dict):
method register_poll_handler (line 9645) | def register_poll_handler(self, callback: Callable, func: Callable, pa...
method poll_answer_handler (line 9666) | def poll_answer_handler(self, func=None, **kwargs):
method add_poll_answer_handler (line 9687) | def add_poll_answer_handler(self, handler_dict):
method register_poll_answer_handler (line 9700) | def register_poll_answer_handler(self, callback: Callable, func: Calla...
method my_chat_member_handler (line 9721) | def my_chat_member_handler(self, func=None, **kwargs):
method add_my_chat_member_handler (line 9742) | def add_my_chat_member_handler(self, handler_dict):
method register_my_chat_member_handler (line 9755) | def register_my_chat_member_handler(self, callback: Callable, func: Op...
method chat_member_handler (line 9776) | def chat_member_handler(self, func=None, **kwargs):
method add_chat_member_handler (line 9798) | def add_chat_member_handler(self, handler_dict):
method register_chat_member_handler (line 9811) | def register_chat_member_handler(
method chat_join_request_handler (line 9833) | def chat_join_request_handler(self, func=None, **kwargs):
method add_chat_join_request_handler (line 9854) | def add_chat_join_request_handler(self, handler_dict):
method register_chat_join_request_handler (line 9867) | def register_chat_join_request_handler(
method chat_boost_handler (line 9889) | def chat_boost_handler(self, func=None, **kwargs):
method add_chat_boost_handler (line 9908) | def add_chat_boost_handler(self, handler_dict):
method register_chat_boost_handler (line 9921) | def register_chat_boost_handler(
method removed_chat_boost_handler (line 9942) | def removed_chat_boost_handler(self, func=None, **kwargs):
method add_removed_chat_boost_handler (line 9961) | def add_removed_chat_boost_handler(self, handler_dict):
method register_removed_chat_boost_handler (line 9974) | def register_removed_chat_boost_handler(
method business_connection_handler (line 9995) | def business_connection_handler(self, func=None, **kwargs):
method add_business_connection_handler (line 10013) | def add_business_connection_handler(self, handler_dict):
method register_business_connection_handler (line 10026) | def register_business_connection_handler(
method business_message_handler (line 10048) | def business_message_handler(
method add_business_message_handler (line 10131) | def add_business_message_handler(self, handler_dict):
method register_business_message_handler (line 10144) | def register_business_message_handler(self,
method edited_business_message_handler (line 10182) | def edited_business_message_handler(self, commands=None, regexp=None, ...
method add_edited_business_message_handler (line 10233) | def add_edited_business_message_handler(self, handler_dict):
method register_edited_business_message_handler (line 10246) | def register_edited_business_message_handler(self, callback: Callable,...
method deleted_business_messages_handler (line 10298) | def deleted_business_messages_handler(self, func=None, **kwargs):
method add_deleted_business_messages_handler (line 10318) | def add_deleted_business_messages_handler(self, handler_dict):
method register_deleted_business_messages_handler (line 10328) | def register_deleted_business_messages_handler(self, callback: Callabl...
method add_custom_filter (line 10350) | def add_custom_filter(self, custom_filter: Union[SimpleCustomFilter, A...
method _test_message_handler (line 10369) | def _test_message_handler(self, message_handler, message):
method _test_filter (line 10387) | def _test_filter(self, message_filter, filter_value, message):
method _check_filter (line 10412) | def _check_filter(self, message_filter, filter_value, message):
method _get_middlewares (line 10426) | def _get_middlewares(self, update_type):
method _run_middlewares_and_handler (line 10439) | def _run_middlewares_and_handler(self, message, handlers, middlewares,...
method _notify_command_handlers (line 10532) | def _notify_command_handlers(self, handlers, new_messages, update_type):
FILE: telebot/apihelper.py
function _get_req_session (line 51) | def _get_req_session(reset=False):
function _make_request (line 70) | def _make_request(token, method_name, method='get', params=None, files=N...
function _check_result (line 175) | def _check_result(method_name, result):
function get_me (line 202) | def get_me(token):
function log_out (line 207) | def log_out(token):
function close (line 212) | def close(token):
function get_file (line 217) | def get_file(token, file_id):
function get_file_url (line 222) | def get_file_url(token, file_id):
function download_file (line 230) | def download_file(token, file_path):
function send_message (line 244) | def send_message(
function set_webhook (line 285) | def set_webhook(token, url=None, certificate=None, max_connections=None,...
function delete_webhook (line 309) | def delete_webhook(token, drop_pending_updates=None, timeout=None):
function get_webhook_info (line 319) | def get_webhook_info(token, timeout=None):
function get_updates (line 327) | def get_updates(token, offset=None, limit=None, timeout=None, allowed_up...
function get_user_profile_photos (line 342) | def get_user_profile_photos(token, user_id, offset=None, limit=None):
function get_user_profile_audios (line 352) | def get_user_profile_audios(token, user_id, offset=None, limit=None):
function set_user_emoji_status (line 362) | def set_user_emoji_status(token, user_id, emoji_status_custom_emoji_id=N...
function set_message_reaction (line 371) | def set_message_reaction(token, chat_id, message_id, reaction=None, is_b...
function get_chat (line 382) | def get_chat(token, chat_id):
function leave_chat (line 388) | def leave_chat(token, chat_id):
function get_chat_administrators (line 394) | def get_chat_administrators(token, chat_id):
function get_chat_member_count (line 400) | def get_chat_member_count(token, chat_id):
function set_sticker_set_thumbnail (line 407) | def set_sticker_set_thumbnail(token, name, user_id, thumbnail, format):
function replace_sticker_in_set (line 419) | def replace_sticker_in_set(token, user_id, name, old_sticker, sticker):
function set_chat_sticker_set (line 424) | def set_chat_sticker_set(token, chat_id, sticker_set_name):
function delete_chat_sticker_set (line 430) | def delete_chat_sticker_set(token, chat_id):
function get_chat_member (line 436) | def get_chat_member(token, chat_id, user_id):
function forward_message (line 442) | def forward_message(
function copy_message (line 468) | def copy_message(token, chat_id, from_chat_id, message_id, caption=None,...
function send_checklist (line 507) | def send_checklist(
function edit_message_checklist (line 527) | def edit_message_checklist(
function send_dice (line 538) | def send_dice(
function send_photo (line 573) | def send_photo(
function send_paid_media (line 624) | def send_paid_media(
function send_media_group (line 665) | def send_media_group(
function send_location (line 697) | def send_location(
function edit_message_live_location (line 741) | def edit_message_live_location(
function stop_message_live_location (line 769) | def stop_message_live_location(
function send_venue (line 789) | def send_venue(
function send_contact (line 830) | def send_contact(
function send_message_draft (line 867) | def send_message_draft(
function send_chat_action (line 881) | def send_chat_action(token, chat_id, action, timeout=None, message_threa...
function send_video (line 893) | def send_video(token, chat_id, data, duration=None, caption=None, reply_...
function send_animation (line 968) | def send_animation(
function send_voice (line 1030) | def send_voice(token, chat_id, voice, caption=None, duration=None, reply...
function send_video_note (line 1074) | def send_video_note(token, chat_id, data, duration=None, length=None, re...
function send_audio (line 1124) | def send_audio(token, chat_id, audio, caption=None, duration=None, perfo...
function send_data (line 1180) | def send_data(token, chat_id, data, data_type, reply_markup=None, parse_...
function get_method_by_type (line 1238) | def get_method_by_type(data_type):
function ban_chat_member (line 1247) | def ban_chat_member(token, chat_id, user_id, until_date=None, revoke_mes...
function unban_chat_member (line 1259) | def unban_chat_member(token, chat_id, user_id, only_if_banned):
function restrict_chat_member (line 1267) | def restrict_chat_member(
function promote_chat_member (line 1284) | def promote_chat_member(
function set_chat_administrator_custom_title (line 1330) | def set_chat_administrator_custom_title(token, chat_id, user_id, custom_...
function set_chat_member_tag (line 1338) | def set_chat_member_tag(token, chat_id, user_id, tag=None):
function ban_chat_sender_chat (line 1346) | def ban_chat_sender_chat(token, chat_id, sender_chat_id):
function unban_chat_sender_chat (line 1352) | def unban_chat_sender_chat(token, chat_id, sender_chat_id):
function set_chat_permissions (line 1358) | def set_chat_permissions(token, chat_id, permissions, use_independent_ch...
function create_chat_invite_link (line 1369) | def create_chat_invite_link(token, chat_id, name, expire_date, member_li...
function edit_chat_invite_link (line 1390) | def edit_chat_invite_link(token, chat_id, invite_link, name, expire_date...
function create_chat_subscription_invite_link (line 1412) | def create_chat_subscription_invite_link(token, chat_id, subscription_pe...
function edit_chat_subscription_invite_link (line 1423) | def edit_chat_subscription_invite_link(token, chat_id, invite_link, name...
function revoke_chat_invite_link (line 1433) | def revoke_chat_invite_link(token, chat_id, invite_link):
function export_chat_invite_link (line 1442) | def export_chat_invite_link(token, chat_id):
function approve_chat_join_request (line 1448) | def approve_chat_join_request(token, chat_id, user_id):
function decline_chat_join_request (line 1457) | def decline_chat_join_request(token, chat_id, user_id):
function set_chat_photo (line 1466) | def set_chat_photo(token, chat_id, photo):
function delete_chat_photo (line 1479) | def delete_chat_photo(token, chat_id):
function set_chat_title (line 1485) | def set_chat_title(token, chat_id, title):
function set_my_description (line 1491) | def set_my_description(token, description=None, language_code=None):
function get_my_description (line 1501) | def get_my_description(token, language_code=None):
function set_my_short_description (line 1508) | def set_my_short_description(token, short_description=None, language_cod...
function get_my_short_description (line 1517) | def get_my_short_description(token, language_code=None):
function get_my_commands (line 1524) | def get_my_commands(token, scope=None, language_code=None):
function set_my_name (line 1533) | def set_my_name(token, name=None, language_code=None):
function get_my_name (line 1542) | def get_my_name(token, language_code=None):
function set_my_profile_photo (line 1549) | def set_my_profile_photo(token, photo):
function delete_my_profile_photo (line 1556) | def delete_my_profile_photo(token):
function set_chat_menu_button (line 1560) | def set_chat_menu_button(token, chat_id=None, menu_button=None):
function get_chat_menu_button (line 1569) | def get_chat_menu_button(token, chat_id=None):
function set_my_default_administrator_rights (line 1577) | def set_my_default_administrator_rights(token, rights=None, for_channels...
function get_my_default_administrator_rights (line 1587) | def get_my_default_administrator_rights(token, for_channels=None):
function set_my_commands (line 1595) | def set_my_commands(token, commands, scope=None, language_code=None):
function get_business_connection (line 1604) | def get_business_connection(token, business_connection_id):
function delete_my_commands (line 1609) | def delete_my_commands(token, scope=None, language_code=None):
function set_chat_description (line 1619) | def set_chat_description(token, chat_id, description):
function pin_chat_message (line 1627) | def pin_chat_message(token, chat_id, message_id, disable_notification=No...
function unpin_chat_message (line 1637) | def unpin_chat_message(token, chat_id, message_id, business_connection_i...
function unpin_all_chat_messages (line 1647) | def unpin_all_chat_messages(token, chat_id):
function edit_message_text (line 1655) | def edit_message_text(
function edit_message_caption (line 1681) | def edit_message_caption(
function edit_message_media (line 1707) | def edit_message_media(
function edit_message_reply_markup (line 1728) | def edit_message_reply_markup(
function approve_suggested_post (line 1747) | def approve_suggested_post(token, chat_id, message_id, send_date=None):
function decline_suggested_post (line 1754) | def decline_suggested_post(token, chat_id, message_id, comment=None):
function delete_message (line 1762) | def delete_message(token, chat_id, message_id, timeout=None):
function send_game (line 1772) | def send_game(
function set_game_score (line 1801) | def set_game_score(token, user_id, score, force=None, disable_edit_messa...
function get_game_high_scores (line 1831) | def get_game_high_scores(token, user_id, chat_id=None, message_id=None, ...
function send_invoice (line 1855) | def send_invoice(
function answer_shipping_query (line 1958) | def answer_shipping_query(token, shipping_query_id, ok, shipping_options...
function answer_pre_checkout_query (line 1977) | def answer_pre_checkout_query(token, pre_checkout_query_id, ok, error_me...
function get_my_star_balance (line 1992) | def get_my_star_balance(token):
function get_star_transactions (line 1996) | def get_star_transactions(token, offset=None, limit=None):
function refund_star_payment (line 2006) | def refund_star_payment(token, user_id, telegram_payment_charge_id):
function edit_user_star_subscription (line 2011) | def edit_user_star_subscription(token, user_id, telegram_payment_charge_...
function unpin_all_general_forum_topic_messages (line 2017) | def unpin_all_general_forum_topic_messages(token, chat_id):
function answer_callback_query (line 2024) | def answer_callback_query(token, callback_query_id, text=None, show_aler...
function get_user_chat_boosts (line 2050) | def get_user_chat_boosts(token, chat_id, user_id):
function answer_inline_query (line 2055) | def answer_inline_query(token, inline_query_id, results, cache_time=None...
function get_sticker_set (line 2070) | def get_sticker_set(token, name):
function get_custom_emoji_stickers (line 2074) | def get_custom_emoji_stickers(token, custom_emoji_ids):
function set_sticker_keywords (line 2078) | def set_sticker_keywords(token, sticker, keywords=None):
function set_sticker_mask_position (line 2085) | def set_sticker_mask_position(token, sticker, mask_position=None):
function upload_sticker_file (line 2093) | def upload_sticker_file(token, user_id, sticker, sticker_format):
function set_custom_emoji_sticker_set_thumbnail (line 2100) | def set_custom_emoji_sticker_set_thumbnail(token, name, custom_emoji_id=...
function set_sticker_set_title (line 2108) | def set_sticker_set_title(token, name, title):
function delete_sticker_set (line 2114) | def delete_sticker_set(token, name):
function get_available_gifts (line 2120) | def get_available_gifts(token):
function send_gift (line 2125) | def send_gift(token, gift_id, text=None, text_parse_mode=None, text_enti...
function verify_user (line 2144) | def verify_user(token, user_id, custom_description=None):
function verify_chat (line 2152) | def verify_chat(token, chat_id, custom_description=None):
function remove_user_verification (line 2160) | def remove_user_verification(token, user_id):
function remove_chat_verification (line 2166) | def remove_chat_verification(token, chat_id):
function read_business_message (line 2172) | def read_business_message(token, business_connection_id, chat_id, messag...
function delete_business_messages (line 2178) | def delete_business_messages(token, business_connection_id, message_ids):
function set_business_account_name (line 2184) | def set_business_account_name(token, business_connection_id, first_name,...
function set_business_account_username (line 2192) | def set_business_account_username(token, business_connection_id, usernam...
function set_business_account_bio (line 2200) | def set_business_account_bio(token, business_connection_id, bio=None):
function set_business_account_gift_settings (line 2208) | def set_business_account_gift_settings(token, business_connection_id, sh...
function set_sticker_emoji_list (line 2214) | def set_sticker_emoji_list(token, sticker, emoji_list):
function get_business_account_star_balance (line 2219) | def get_business_account_star_balance(token, business_connection_id):
function transfer_business_account_stars (line 2224) | def transfer_business_account_stars(token, business_connection_id, star_...
function get_business_account_gifts (line 2229) | def get_business_account_gifts(token, business_connection_id, exclude_un...
function get_user_gifts (line 2259) | def get_user_gifts(token, user_id, exclude_unlimited=None, exclude_limit...
function get_chat_gifts (line 2284) | def get_chat_gifts(token, chat_id, exclude_unsaved=None, exclude_saved=N...
function convert_gift_to_stars (line 2315) | def convert_gift_to_stars(token, business_connection_id, owned_gift_id):
function upgrade_gift (line 2320) | def upgrade_gift(token, business_connection_id, owned_gift_id, keep_orig...
function transfer_gift (line 2329) | def transfer_gift(token, business_connection_id, owned_gift_id, new_owne...
function post_story (line 2336) | def post_story(token, business_connection_id, content, active_period, ca...
function repost_story (line 2359) | def repost_story(token, business_connection_id, from_chat_id, from_story...
function edit_story (line 2372) | def edit_story(token, business_connection_id, story_id, content, caption...
function delete_story (line 2390) | def delete_story(token, business_connection_id, story_id):
function gift_premium_subscription (line 2395) | def gift_premium_subscription(token, user_id, month_count, star_count, t...
function set_business_account_profile_photo (line 2407) | def set_business_account_profile_photo(token, business_connection_id, ph...
function remove_business_account_profile_photo (line 2416) | def remove_business_account_profile_photo(token, business_connection_id,...
function create_new_sticker_set (line 2423) | def create_new_sticker_set(
function add_sticker_to_set (line 2449) | def add_sticker_to_set(token, user_id, name, sticker):
function set_sticker_position_in_set (line 2456) | def set_sticker_position_in_set(token, sticker, position):
function delete_sticker_from_set (line 2462) | def delete_sticker_from_set(token, sticker):
function answer_web_app_query (line 2468) | def answer_web_app_query(token, web_app_query_id, result: types.InlineQu...
function save_prepared_inline_message (line 2474) | def save_prepared_inline_message(token, user_id, result: types.InlineQue...
function create_invoice_link (line 2489) | def create_invoice_link(token, title, description, payload, provider_token,
function send_poll (line 2535) | def send_poll(
function create_forum_topic (line 2596) | def create_forum_topic(token, chat_id, name, icon_color=None, icon_custo...
function edit_forum_topic (line 2605) | def edit_forum_topic(token, chat_id, message_thread_id, name=None, icon_...
function close_forum_topic (line 2614) | def close_forum_topic(token, chat_id, message_thread_id):
function reopen_forum_topic (line 2619) | def reopen_forum_topic(token, chat_id, message_thread_id):
function delete_forum_topic (line 2624) | def delete_forum_topic(token, chat_id, message_thread_id):
function unpin_all_forum_topic_messages (line 2629) | def unpin_all_forum_topic_messages(token, chat_id, message_thread_id):
function get_forum_topic_icon_stickers (line 2634) | def get_forum_topic_icon_stickers(token):
function stop_poll (line 2638) | def stop_poll(token, chat_id, message_id, reply_markup=None, business_co...
function edit_general_forum_topic (line 2647) | def edit_general_forum_topic(token, chat_id, name):
function close_general_forum_topic (line 2652) | def close_general_forum_topic(token, chat_id):
function reopen_general_forum_topic (line 2657) | def reopen_general_forum_topic(token, chat_id):
function hide_general_forum_topic (line 2662) | def hide_general_forum_topic(token, chat_id):
function unhide_general_forum_topic (line 2667) | def unhide_general_forum_topic(token, chat_id):
function delete_messages (line 2672) | def delete_messages(token, chat_id, message_ids):
function forward_messages (line 2680) | def forward_messages(token, chat_id, from_chat_id, message_ids, disable_...
function copy_messages (line 2698) | def copy_messages(token, chat_id, from_chat_id, message_ids, disable_not...
function _convert_list_json_serializable (line 2722) | def _convert_list_json_serializable(results):
function _convert_markup (line 2732) | def _convert_markup(markup):
function convert_input_media (line 2738) | def convert_input_media(media):
function convert_input_media_array (line 2744) | def convert_input_media_array(array):
function _no_encode (line 2764) | def _no_encode(func):
class ApiException (line 2774) | class ApiException(Exception):
method __init__ (line 2782) | def __init__(self, msg, function_name, result):
class ApiHTTPException (line 2788) | class ApiHTTPException(ApiException):
method __init__ (line 2793) | def __init__(self, function_name, result):
class ApiInvalidJSONException (line 2801) | class ApiInvalidJSONException(ApiException):
method __init__ (line 2806) | def __init__(self, function_name, result):
class ApiTelegramException (line 2814) | class ApiTelegramException(ApiException):
method __init__ (line 2818) | def __init__(self, function_name, result, result_json):
FILE: telebot/async_telebot.py
class Handler (line 43) | class Handler:
method __init__ (line 47) | def __init__(self, callback, *args, **kwargs):
method __getitem__ (line 52) | def __getitem__(self, item):
class ExceptionHandler (line 56) | class ExceptionHandler:
method handle (line 62) | async def handle(self, exception):
class AsyncTeleBot (line 66) | class AsyncTeleBot:
method __init__ (line 128) | def __init__(self, token: str, parse_mode: Optional[str]=None, offset:...
method user (line 202) | def user(self):
method close_session (line 205) | async def close_session(self):
method get_updates (line 212) | async def get_updates(self, offset: Optional[int]=None, limit: Optiona...
method _setup_change_detector (line 244) | def _setup_change_detector(self, path_to_watch: str) -> None:
method polling (line 263) | async def polling(self, non_stop: bool=True, skip_pending=False, inter...
method infinity_polling (line 326) | async def infinity_polling(self, timeout: Optional[int]=20, skip_pendi...
method _handle_exception (line 389) | async def _handle_exception(self, exception: Exception) -> bool:
method __hide_token (line 399) | def __hide_token(self, message: str) -> str:
method _handle_error_interval (line 406) | async def _handle_error_interval(self, error_interval: float):
method _process_polling (line 415) | async def _process_polling(self, non_stop: bool=False, interval: int=0...
method _loop_create_task (line 509) | def _loop_create_task(coro):
method _process_updates (line 512) | async def _process_updates(self, handlers, messages, update_type):
method _run_middlewares_and_handlers (line 526) | async def _run_middlewares_and_handlers(self, message, handlers, middl...
method process_new_updates (line 604) | async def process_new_updates(self, updates: List[types.Update]):
method process_new_messages (line 762) | async def process_new_messages(self, new_messages):
method process_new_edited_messages (line 769) | async def process_new_edited_messages(self, edited_message):
method process_new_channel_posts (line 775) | async def process_new_channel_posts(self, channel_post):
method process_new_edited_channel_posts (line 781) | async def process_new_edited_channel_posts(self, edited_channel_post):
method process_new_message_reaction (line 787) | async def process_new_message_reaction(self, message_reaction):
method process_new_message_reaction_count (line 793) | async def process_new_message_reaction_count(self, message_reaction_co...
method process_new_inline_query (line 799) | async def process_new_inline_query(self, new_inline_queries):
method process_new_chosen_inline_query (line 805) | async def process_new_chosen_inline_query(self, new_chosen_inline_quer...
method process_new_callback_query (line 811) | async def process_new_callback_query(self, new_callback_queries):
method process_new_shipping_query (line 817) | async def process_new_shipping_query(self, new_shipping_queries):
method process_new_pre_checkout_query (line 823) | async def process_new_pre_checkout_query(self, pre_checkout_queries):
method process_new_poll (line 829) | async def process_new_poll(self, polls):
method process_new_poll_answer (line 835) | async def process_new_poll_answer(self, poll_answers):
method process_new_my_chat_member (line 841) | async def process_new_my_chat_member(self, my_chat_members):
method process_new_chat_member (line 847) | async def process_new_chat_member(self, chat_members):
method process_chat_join_request (line 853) | async def process_chat_join_request(self, chat_join_request):
method process_new_chat_boost (line 859) | async def process_new_chat_boost(self, chat_boost):
method process_new_removed_chat_boost (line 865) | async def process_new_removed_chat_boost(self, removed_chat_boost):
method process_new_business_connection (line 871) | async def process_new_business_connection(self, new_business_connectio...
method process_new_business_message (line 877) | async def process_new_business_message(self, new_business_messages):
method process_new_edited_business_message (line 883) | async def process_new_edited_business_message(self, new_edited_busines...
method process_new_deleted_business_messages (line 889) | async def process_new_deleted_business_messages(self, new_deleted_busi...
method process_new_purchased_paid_media (line 895) | async def process_new_purchased_paid_media(self, new_purchased_paid_me...
method _get_middlewares (line 901) | async def _get_middlewares(self, update_type):
method __notify_update (line 910) | async def __notify_update(self, new_messages):
method _test_message_handler (line 916) | async def _test_message_handler(self, message_handler, message):
method set_update_listener (line 933) | def set_update_listener(self, func: Awaitable):
method add_custom_filter (line 953) | def add_custom_filter(self, custom_filter: Union[asyncio_filters.Simpl...
method _test_filter (line 973) | async def _test_filter(self, message_filter, filter_value, message):
method _check_filter (line 1006) | async def _check_filter(self, message_filter, filter_value, message):
method setup_middleware (line 1026) | def setup_middleware(self, middleware: BaseMiddleware):
method check_commands_input (line 1050) | def check_commands_input(commands, method_name):
method check_regexp_input (line 1059) | def check_regexp_input(regexp, method_name):
method message_handler (line 1066) | def message_handler(self, commands=None, regexp=None, func=None, conte...
method add_message_handler (line 1146) | def add_message_handler(self, handler_dict):
method register_message_handler (line 1158) | def register_message_handler(self, callback: Callable[[Any], Awaitable...
method edited_message_handler (line 1208) | def edited_message_handler(self, commands=None, regexp=None, func=None...
method add_edited_message_handler (line 1258) | def add_edited_message_handler(self, handler_dict):
method register_edited_message_handler (line 1270) | def register_edited_message_handler(self, callback: Callable[[Any], Aw...
method channel_post_handler (line 1320) | def channel_post_handler(self, commands=None, regexp=None, func=None, ...
method add_channel_post_handler (line 1363) | def add_channel_post_handler(self, handler_dict):
method register_channel_post_handler (line 1375) | def register_channel_post_handler(self, callback: Callable[[Any], Awai...
method edited_channel_post_handler (line 1419) | def edited_channel_post_handler(self, commands=None, regexp=None, func...
method add_edited_channel_post_handler (line 1463) | def add_edited_channel_post_handler(self, handler_dict):
method register_edited_channel_post_handler (line 1475) | def register_edited_channel_post_handler(self, callback: Callable[[Any...
method message_reaction_handler (line 1519) | def message_reaction_handler(self, func=None, **kwargs):
method add_message_reaction_handler (line 1539) | def add_message_reaction_handler(self, handler_dict):
method register_message_reaction_handler (line 1551) | def register_message_reaction_handler(self, callback: Callable[[Any], ...
method message_reaction_count_handler (line 1571) | def message_reaction_count_handler(self, func=None, **kwargs):
method add_message_reaction_count_handler (line 1591) | def add_message_reaction_count_handler(self, handler_dict):
method register_message_reaction_count_handler (line 1603) | def register_message_reaction_count_handler(self, callback: Callable[[...
method inline_handler (line 1624) | def inline_handler(self, func=None, **kwargs):
method add_inline_handler (line 1644) | def add_inline_handler(self, handler_dict):
method register_inline_handler (line 1656) | def register_inline_handler(self, callback: Callable[[Any], Awaitable]...
method chosen_inline_handler (line 1676) | def chosen_inline_handler(self, func, **kwargs):
method add_chosen_inline_handler (line 1697) | def add_chosen_inline_handler(self, handler_dict):
method register_chosen_inline_handler (line 1709) | def register_chosen_inline_handler(self, callback: Callable[[Any], Awa...
method callback_query_handler (line 1729) | def callback_query_handler(self, func=None, **kwargs):
method add_callback_query_handler (line 1749) | def add_callback_query_handler(self, handler_dict):
method register_callback_query_handler (line 1761) | def register_callback_query_handler(self, callback: Callable[[Any], Aw...
method shipping_query_handler (line 1781) | def shipping_query_handler(self, func, **kwargs):
method add_shipping_query_handler (line 1801) | def add_shipping_query_handler(self, handler_dict):
method register_shipping_query_handler (line 1813) | def register_shipping_query_handler(self, callback: Callable[[Any], Aw...
method pre_checkout_query_handler (line 1833) | def pre_checkout_query_handler(self, func, **kwargs):
method add_pre_checkout_query_handler (line 1853) | def add_pre_checkout_query_handler(self, handler_dict):
method register_pre_checkout_query_handler (line 1865) | def register_pre_checkout_query_handler(self, callback: Callable[[Any]...
method purchased_paid_media_handler (line 1884) | def purchased_paid_media_handler(self, func=None, **kwargs):
method add_purchased_paid_media_handler (line 1902) | def add_purchased_paid_media_handler(self, handler_dict):
method register_purchased_paid_media_handler (line 1914) | def register_purchased_paid_media_handler(self, callback: Callable, fu...
method poll_handler (line 1934) | def poll_handler(self, func, **kwargs):
method add_poll_handler (line 1953) | def add_poll_handler(self, handler_dict):
method register_poll_handler (line 1965) | def register_poll_handler(self, callback: Callable[[Any], Awaitable], ...
method poll_answer_handler (line 1985) | def poll_answer_handler(self, func=None, **kwargs):
method add_poll_answer_handler (line 2006) | def add_poll_answer_handler(self, handler_dict):
method register_poll_answer_handler (line 2018) | def register_poll_answer_handler(self, callback: Callable[[Any], Await...
method my_chat_member_handler (line 2038) | def my_chat_member_handler(self, func=None, **kwargs):
method add_my_chat_member_handler (line 2059) | def add_my_chat_member_handler(self, handler_dict):
method register_my_chat_member_handler (line 2071) | def register_my_chat_member_handler(self, callback: Callable[[Any], Aw...
method chat_member_handler (line 2091) | def chat_member_handler(self, func=None, **kwargs):
method add_chat_member_handler (line 2113) | def add_chat_member_handler(self, handler_dict):
method register_chat_member_handler (line 2125) | def register_chat_member_handler(self, callback: Callable[[Any], Await...
method chat_join_request_handler (line 2145) | def chat_join_request_handler(self, func=None, **kwargs):
method add_chat_join_request_handler (line 2166) | def add_chat_join_request_handler(self, handler_dict):
method register_chat_join_request_handler (line 2178) | def register_chat_join_request_handler(self, callback: Callable[[Any],...
method chat_boost_handler (line 2199) | def chat_boost_handler(self, func=None, **kwargs):
method add_chat_boost_handler (line 2217) | def add_chat_boost_handler(self, handler_dict):
method register_chat_boost_handler (line 2229) | def register_chat_boost_handler(self, callback: Callable, func: Option...
method removed_chat_boost_handler (line 2248) | def removed_chat_boost_handler(self, func=None, **kwargs):
method add_removed_chat_boost_handler (line 2266) | def add_removed_chat_boost_handler(self, handler_dict):
method register_removed_chat_boost_handler (line 2278) | def register_removed_chat_boost_handler(self, callback: Callable, func...
method business_connection_handler (line 2298) | def business_connection_handler(self, func=None, **kwargs):
method add_business_connection_handler (line 2315) | def add_business_connection_handler(self, handler_dict):
method register_business_connection_handler (line 2327) | def register_business_connection_handler(
method business_message_handler (line 2348) | def business_message_handler(
method add_business_message_handler (line 2430) | def add_business_message_handler(self, handler_dict):
method register_business_message_handler (line 2442) | def register_business_message_handler(self,
method edited_business_message_handler (line 2482) | def edited_business_message_handler(self, commands=None, regexp=None, ...
method add_edited_business_message_handler (line 2533) | def add_edited_business_message_handler(self, handler_dict):
method register_edited_business_message_handler (line 2546) | def register_edited_business_message_handler(self, callback: Callable,...
method deleted_business_messages_handler (line 2598) | def deleted_business_messages_handler(self, func=None, **kwargs):
method add_deleted_business_messages_handler (line 2617) | def add_deleted_business_messages_handler(self, handler_dict):
method register_deleted_business_messages_handler (line 2626) | def register_deleted_business_messages_handler(self, callback: Callabl...
method _build_handler_dict (line 2648) | def _build_handler_dict(handler, pass_bot=False, **filters):
method skip_updates (line 2664) | async def skip_updates(self):
method get_me (line 2674) | async def get_me(self) -> types.User:
method get_file (line 2683) | async def get_file(self, file_id: Optional[str]) -> types.File:
method get_file_url (line 2700) | async def get_file_url(self, file_id: Optional[str]) -> str:
method download_file (line 2712) | async def download_file(self, file_path: Optional[str]) -> bytes:
method log_out (line 2724) | async def log_out(self) -> bool:
method close (line 2740) | async def close(self) -> bool:
method enable_saving_states (line 2754) | def enable_saving_states(self, filename="./.state-save/states.pkl"):
method set_webhook (line 2768) | async def set_webhook(self, url: Optional[str]=None, certificate: Opti...
method run_webhooks (line 2825) | async def run_webhooks(self,
method delete_webhook (line 2901) | async def delete_webhook(self, drop_pending_updates: Optional[bool]=No...
method remove_webhook (line 2919) | async def remove_webhook(self) -> bool:
method get_webhook_info (line 2926) | async def get_webhook_info(self, timeout: Optional[int]=None) -> types...
method set_message_reaction (line 2942) | async def set_message_reaction(self, chat_id: Union[int, str], message...
method get_user_profile_photos (line 2968) | async def get_user_profile_photos(self, user_id: int, offset: Optional...
method get_user_profile_audios (line 2992) | async def get_user_profile_audios(self, user_id: int, offset: Optional...
method set_user_emoji_status (line 3012) | async def set_user_emoji_status(self, user_id: int, emoji_status_custo...
method get_chat (line 3032) | async def get_chat(self, chat_id: Union[int, str]) -> types.ChatFullInfo:
method leave_chat (line 3048) | async def leave_chat(self, chat_id: Union[int, str]) -> bool:
method get_chat_administrators (line 3062) | async def get_chat_administrators(self, chat_id: Union[int, str]) -> L...
method get_chat_members_count (line 3079) | async def get_chat_members_count(self, chat_id: Union[int, str]) -> int:
method get_chat_member_count (line 3099) | async def get_chat_member_count(self, chat_id: Union[int, str]) -> int:
method set_chat_sticker_set (line 3114) | async def set_chat_sticker_set(self, chat_id: Union[int, str], sticker...
method delete_chat_sticker_set (line 3134) | async def delete_chat_sticker_set(self, chat_id: Union[int, str]) -> b...
method answer_web_app_query (line 3151) | async def answer_web_app_query(self, web_app_query_id: str, result: ty...
method save_prepared_inline_message (line 3172) | async def save_prepared_inline_message(self, user_id: int, result: typ...
method get_chat_member (line 3202) | async def get_chat_member(self, chat_id: Union[int, str], user_id: int...
method send_message (line 3220) | async def send_message(
method forward_message (line 3370) | async def forward_message(
method copy_message (line 3435) | async def copy_message(
method approve_suggested_post (line 3570) | async def approve_suggested_post(self, chat_id: int, message_id: int, ...
method decline_suggested_post (line 3592) | async def decline_suggested_post(self, chat_id: int, message_id: int, ...
method delete_message (line 3614) | async def delete_message(self, chat_id: Union[int, str], message_id: int,
method delete_messages (line 3643) | async def delete_messages(self, chat_id: Union[int, str], message_ids:...
method forward_messages (line 3661) | async def forward_messages(self, chat_id: Union[str, int], from_chat_i...
method copy_messages (line 3703) | async def copy_messages(self, chat_id: Union[str, int], from_chat_id: ...
method send_checklist (line 3749) | async def send_checklist(
method edit_message_checklist (line 3802) | async def edit_message_checklist(
method send_dice (line 3834) | async def send_dice(
method send_photo (line 3941) | async def send_photo(
method send_audio (line 4071) | async def send_audio(
method send_voice (line 4221) | async def send_voice(
method send_document (line 4344) | async def send_document(
method send_sticker (line 4501) | async def send_sticker(
method send_video (line 4625) | async def send_video(
method send_animation (line 4798) | async def send_animation(
method send_video_note (line 4954) | async def send_video_note(
method send_paid_media (line 5086) | async def send_paid_media(
method send_media_group (line 5166) | async def send_media_group(
method send_location (line 5266) | async def send_location(
method edit_message_live_location (line 5394) | async def edit_message_live_location(
method stop_message_live_location (line 5461) | async def stop_message_live_location(
method send_venue (line 5500) | async def send_venue(
method send_contact (line 5635) | async def send_contact(
method send_message_draft (line 5751) | async def send_message_draft(
method send_chat_action (line 5788) | async def send_chat_action(
method kick_chat_member (line 5824) | async def kick_chat_member(
method ban_chat_member (line 5834) | async def ban_chat_member(
method unban_chat_member (line 5867) | async def unban_chat_member(
method restrict_chat_member (line 5894) | async def restrict_chat_member(
method promote_chat_member (line 5981) | async def promote_chat_member(
method set_chat_administrator_custom_title (line 6095) | async def set_chat_administrator_custom_title(
method set_chat_member_tag (line 6120) | async def set_chat_member_tag(
method ban_chat_sender_chat (line 6144) | async def ban_chat_sender_chat(self, chat_id: Union[int, str], sender_...
method unban_chat_sender_chat (line 6166) | async def unban_chat_sender_chat(self, chat_id: Union[int, str], sende...
method set_chat_permissions (line 6186) | async def set_chat_permissions(
method create_chat_invite_link (line 6214) | async def create_chat_invite_link(
method edit_chat_invite_link (line 6251) | async def edit_chat_invite_link(
method create_chat_subscription_invite_link (line 6290) | async def create_chat_subscription_invite_link(
method edit_chat_subscription_invite_link (line 6322) | async def edit_chat_subscription_invite_link(
method revoke_chat_invite_link (line 6347) | async def revoke_chat_invite_link(
method export_chat_invite_link (line 6370) | async def export_chat_invite_link(self, chat_id: Union[int, str]) -> str:
method approve_chat_join_request (line 6387) | async def approve_chat_join_request(self, chat_id: Union[str, int], us...
method decline_chat_join_request (line 6407) | async def decline_chat_join_request(self, chat_id: Union[str, int], us...
method set_chat_photo (line 6427) | async def set_chat_photo(self, chat_id: Union[int, str], photo: Any) -...
method delete_chat_photo (line 6448) | async def delete_chat_photo(self, chat_id: Union[int, str]) -> bool:
method set_my_description (line 6466) | async def set_my_description(self, description: Optional[str]=None, la...
method get_my_description (line 6484) | async def get_my_description(self, language_code: Optional[str]=None):
method set_my_short_description (line 6497) | async def set_my_short_description(self, short_description:Optional[st...
method get_my_short_description (line 6515) | async def get_my_short_description(self, language_code: Optional[str]=...
method get_my_commands (line 6528) | async def get_my_commands(self, scope: Optional[types.BotCommandScope],
method set_my_name (line 6551) | async def set_my_name(self, name: Optional[str]=None, language_code: O...
method get_my_name (line 6569) | async def get_my_name(self, language_code: Optional[str]=None):
method set_my_profile_photo (line 6585) | async def set_my_profile_photo(self, photo: types.InputProfilePhoto) -...
method remove_my_profile_photo (line 6599) | async def remove_my_profile_photo(self) -> bool:
method set_chat_menu_button (line 6610) | async def set_chat_menu_button(self, chat_id: Union[int, str]=None,
method get_chat_menu_button (line 6632) | async def get_chat_menu_button(self, chat_id: Union[int, str]=None) ->...
method set_my_default_administrator_rights (line 6650) | async def set_my_default_administrator_rights(self, rights: types.Chat...
method get_my_default_administrator_rights (line 6676) | async def get_my_default_administrator_rights(self, for_channels: bool...
method get_business_connection (line 6692) | async def get_business_connection(self, business_connection_id: str) -...
method set_my_commands (line 6712) | async def set_my_commands(self, commands: List[types.BotCommand],
method delete_my_commands (line 6737) | async def delete_my_commands(self, scope: Optional[types.BotCommandSco...
method set_chat_title (line 6760) | async def set_chat_title(self, chat_id: Union[int, str], title: str) -...
method set_chat_description (line 6782) | async def set_chat_description(self, chat_id: Union[int, str], descrip...
method pin_chat_message (line 6801) | async def pin_chat_message(
method unpin_chat_message (line 6832) | async def unpin_chat_message(self, chat_id: Union[int, str], message_i...
method unpin_all_chat_messages (line 6855) | async def unpin_all_chat_messages(self, chat_id: Union[int, str]) -> b...
method edit_message_text (line 6872) | async def edit_message_text(
method edit_message_media (line 6953) | async def edit_message_media(
method edit_message_reply_markup (line 6998) | async def edit_message_reply_markup(
method send_game (line 7037) | async def send_game(
method set_game_score (line 7128) | async def set_game_score(
method get_game_high_scores (line 7170) | async def get_game_high_scores(
method send_invoice (line 7202) | async def send_invoice(
method create_invoice_link (line 7389) | async def create_invoice_link(self,
method send_poll (line 7504) | async def send_poll(
method stop_poll (line 7671) | async def stop_poll(
method answer_shipping_query (line 7697) | async def answer_shipping_query(
method answer_pre_checkout_query (line 7724) | async def answer_pre_checkout_query(
method get_my_star_balance (line 7754) | async def get_my_star_balance(self) -> types.StarAmount:
method get_star_transactions (line 7761) | async def get_star_transactions(self, offset: Optional[int]=None, limi...
method refund_star_payment (line 7779) | async def refund_star_payment(self, user_id: int, telegram_payment_cha...
method edit_user_star_subscription (line 7796) | async def edit_user_star_subscription(self, user_id: int, telegram_pay...
method edit_message_caption (line 7816) | async def edit_message_caption(
method reply_to (line 7874) | async def reply_to(self, message: types.Message, text: str, **kwargs) ...
method answer_inline_query (line 7907) | async def answer_inline_query(
method unpin_all_general_forum_topic_messages (line 7964) | async def unpin_all_general_forum_topic_messages(self, chat_id: Union[...
method answer_callback_query (line 7982) | async def answer_callback_query(
method get_user_chat_boosts (line 8020) | async def get_user_chat_boosts(self, chat_id: Union[int, str], user_id...
method set_sticker_set_thumbnail (line 8040) | async def set_sticker_set_thumbnail(self, name: str, user_id: int, thu...
method set_sticker_set_thumb (line 8070) | async def set_sticker_set_thumb(self, name: str, user_id: int, thumb: ...
method get_sticker_set (line 8092) | async def get_sticker_set(self, name: str) -> types.StickerSet:
method set_sticker_keywords (line 8107) | async def set_sticker_keywords(self, sticker: str, keywords: List[str]...
method set_sticker_mask_position (line 8124) | async def set_sticker_mask_position(self, sticker: str, mask_position:...
method get_custom_emoji_stickers (line 8141) | async def get_custom_emoji_stickers(self, custom_emoji_ids: List[str])...
method upload_sticker_file (line 8155) | async def upload_sticker_file(self, user_id: int, png_sticker: Union[A...
method set_custom_emoji_sticker_set_thumbnail (line 8187) | async def set_custom_emoji_sticker_set_thumbnail(self, name: str, cust...
method set_sticker_set_title (line 8203) | async def set_sticker_set_title(self, name: str, title: str) -> bool:
method delete_sticker_set (line 8220) | async def delete_sticker_set(self, name:str) -> bool:
method send_gift (line 8233) | async def send_gift(self, user_id: Optional[Union[str, int]] = None, g...
method verify_user (line 8275) | async def verify_user(self, user_id: int, custom_description: Optional...
method verify_chat (line 8292) | async def verify_chat(self, chat_id: Union[int, str], custom_descripti...
method remove_user_verification (line 8310) | async def remove_user_verification(self, user_id: int) -> bool:
method remove_chat_verification (line 8325) | async def remove_chat_verification(self, chat_id: int) -> bool:
method read_business_message (line 8339) | async def read_business_message(self, business_connection_id: str, cha...
method delete_business_messages (line 8359) | async def delete_business_messages(self, business_connection_id: str, ...
method set_business_account_name (line 8376) | async def set_business_account_name(self, business_connection_id: str,...
method set_business_account_username (line 8396) | async def set_business_account_username(self, business_connection_id: ...
method set_business_account_bio (line 8414) | async def set_business_account_bio(self, business_connection_id: str, ...
method set_business_account_gift_settings (line 8431) | async def set_business_account_gift_settings(
method get_business_account_star_balance (line 8452) | async def get_business_account_star_balance(self, business_connection_...
method transfer_business_account_stars (line 8468) | async def transfer_business_account_stars(self, business_connection_id...
method get_business_account_gifts (line 8485) | async def get_business_account_gifts(
method get_user_gifts (line 8569) | async def get_user_gifts(
method get_chat_gifts (line 8629) | async def get_chat_gifts(
method convert_gift_to_stars (line 8698) | async def convert_gift_to_stars(self, business_connection_id: str, own...
method upgrade_gift (line 8715) | async def upgrade_gift(
method transfer_gift (line 8747) | async def transfer_gift(
method post_story (line 8779) | async def post_story(
method repost_story (line 8835) | async def repost_story(
method edit_story (line 8879) | async def edit_story(
method delete_story (line 8926) | async def delete_story(self, business_connection_id: str, story_id: in...
method set_business_account_profile_photo (line 8943) | async def set_business_account_profile_photo(
method remove_business_account_profile_photo (line 8966) | async def remove_business_account_profile_photo(
method gift_premium_subscription (line 8985) | async def gift_premium_subscription(
method get_available_gifts (line 9021) | async def get_available_gifts(self) -> types.Gifts:
method replace_sticker_in_set (line 9034) | async def replace_sticker_in_set(self, user_id: int, name: str, old_st...
method set_sticker_emoji_list (line 9059) | async def set_sticker_emoji_list(self, name: str, emoji_list: List[str...
method create_new_sticker_set (line 9077) | async def create_new_sticker_set(
method add_sticker_to_set (line 9173) | async def add_sticker_to_set(
method set_sticker_position_in_set (line 9237) | async def set_sticker_position_in_set(self, sticker: str, position: in...
method delete_sticker_from_set (line 9254) | async def delete_sticker_from_set(self, sticker: str) -> bool:
method create_forum_topic (line 9266) | async def create_forum_topic(self,
method edit_forum_topic (line 9295) | async def edit_forum_topic(
method close_forum_topic (line 9327) | async def close_forum_topic(self, chat_id: Union[str, int], message_th...
method reopen_forum_topic (line 9346) | async def reopen_forum_topic(self, chat_id: Union[str, int], message_t...
method delete_forum_topic (line 9365) | async def delete_forum_topic(self, chat_id: Union[str, int], message_t...
method unpin_all_forum_topic_messages (line 9384) | async def unpin_all_forum_topic_messages(self, chat_id: Union[str, int...
method edit_general_forum_topic (line 9403) | async def edit_general_forum_topic(self, chat_id: Union[int, str], nam...
method close_general_forum_topic (line 9420) | async def close_general_forum_topic(self, chat_id: Union[int, str]) ->...
method reopen_general_forum_topic (line 9433) | async def reopen_general_forum_topic(self, chat_id: Union[int, str]) -...
method hide_general_forum_topic (line 9446) | async def hide_general_forum_topic(self, chat_id: Union[int, str]) -> ...
method unhide_general_forum_topic (line 9459) | async def unhide_general_forum_topic(self, chat_id: Union[int, str]) -...
method get_forum_topic_icon_stickers (line 9472) | async def get_forum_topic_icon_stickers(self) -> List[types.Sticker]:
method set_state (line 9485) | async def set_state(self, user_id: int, state: Union[int, str, State],...
method reset_data (line 9534) | async def reset_data(self, user_id: int, chat_id: Optional[int]=None,
method delete_state (line 9566) | async def delete_state(self, user_id: int, chat_id: Optional[int]=None...
method retrieve_data (line 9596) | def retrieve_data(self, user_id: int, chat_id: Optional[int]=None, bus...
method get_state (line 9627) | async def get_state(self, user_id: int, chat_id: Optional[int]=None,
method add_data (line 9665) | async def add_data(self, user_id: int, chat_id: Optional[int]=None,
FILE: telebot/asyncio_filters.py
class SimpleCustomFilter (line 9) | class SimpleCustomFilter(ABC):
method check (line 31) | async def check(self, message) -> bool:
class AdvancedCustomFilter (line 38) | class AdvancedCustomFilter(ABC):
method check (line 61) | async def check(self, message, text):
class TextFilter (line 68) | class TextFilter:
method __init__ (line 94) | def __init__(self,
method _check_iterable (line 131) | def _check_iterable(self, iterable, filter_name):
method check (line 142) | async def check(self, obj: Union[types.Message, types.CallbackQuery, t...
class TextMatchFilter (line 190) | class TextMatchFilter(AdvancedCustomFilter):
method check (line 203) | async def check(self, message, text):
class TextContainsFilter (line 215) | class TextContainsFilter(AdvancedCustomFilter):
method check (line 231) | async def check(self, message, text):
class TextStartsFilter (line 245) | class TextStartsFilter(AdvancedCustomFilter):
method check (line 259) | async def check(self, message, text):
class ChatFilter (line 266) | class ChatFilter(AdvancedCustomFilter):
method check (line 279) | async def check(self, message, text):
class ForwardFilter (line 288) | class ForwardFilter(SimpleCustomFilter):
method check (line 301) | async def check(self, message):
class IsReplyFilter (line 308) | class IsReplyFilter(SimpleCustomFilter):
method check (line 321) | async def check(self, message):
class LanguageFilter (line 330) | class LanguageFilter(AdvancedCustomFilter):
method check (line 343) | async def check(self, message, text):
class IsAdminFilter (line 353) | class IsAdminFilter(SimpleCustomFilter):
method __init__ (line 366) | def __init__(self, bot):
method check (line 369) | async def check(self, message):
class StateFilter (line 380) | class StateFilter(AdvancedCustomFilter):
method __init__ (line 391) | def __init__(self, bot):
method check (line 396) | async def check(self, message, text):
class IsDigitFilter (line 434) | class IsDigitFilter(SimpleCustomFilter):
method check (line 446) | async def check(self, message):
FILE: telebot/asyncio_handler_backends.py
class BaseMiddleware (line 7) | class BaseMiddleware:
method __init__ (line 42) | def __init__(self):
method pre_process (line 45) | async def pre_process(self, message, data):
method post_process (line 48) | async def post_process(self, message, data, exception):
class SkipHandler (line 52) | class SkipHandler:
method __init__ (line 61) | def __init__(self) -> None:
class CancelUpdate (line 65) | class CancelUpdate:
method __init__ (line 74) | def __init__(self) -> None:
class ContinueHandling (line 78) | class ContinueHandling:
method __init__ (line 97) | def __init__(self) -> None:
FILE: telebot/asyncio_helper.py
class SessionManager (line 31) | class SessionManager:
method __init__ (line 32) | def __init__(self) -> None:
method create_session (line 37) | async def create_session(self):
method get_session (line 44) | async def get_session(self):
function _process_request (line 61) | async def _process_request(token, url, method='get', params=None, files=...
function _prepare_file (line 107) | def _prepare_file(obj):
function _prepare_data (line 115) | def _prepare_data(params=None, files=None):
function _convert_markup (line 147) | async def _convert_markup(markup):
function get_me (line 154) | async def get_me(token):
function log_out (line 159) | async def log_out(token):
function close (line 164) | async def close(token):
function get_file (line 169) | async def get_file(token, file_id):
function get_file_url (line 174) | async def get_file_url(token, file_id):
function download_file (line 182) | async def download_file(token, file_path):
function set_webhook (line 197) | async def set_webhook(token, url=None, certificate=None, max_connections...
function delete_webhook (line 221) | async def delete_webhook(token, drop_pending_updates=None, timeout=None):
function get_webhook_info (line 231) | async def get_webhook_info(token, timeout=None):
function get_updates (line 240) | async def get_updates(token, offset=None, limit=None,
function _check_result (line 254) | async def _check_result(method_name, result: aiohttp.ClientResponse):
function send_message (line 281) | async def send_message(
function get_user_profile_photos (line 323) | async def get_user_profile_photos(token, user_id, offset=None, limit=None):
function get_user_profile_audios (line 333) | async def get_user_profile_audios(token, user_id, offset=None, limit=None):
function set_user_emoji_status (line 343) | async def set_user_emoji_status(token, user_id, emoji_status_custom_emoj...
function set_message_reaction (line 352) | async def set_message_reaction(token, chat_id, message_id, reaction=None...
function get_chat (line 362) | async def get_chat(token, chat_id):
function leave_chat (line 368) | async def leave_chat(token, chat_id):
function get_chat_administrators (line 374) | async def get_chat_administrators(token, chat_id):
function get_chat_member_count (line 380) | async def get_chat_member_count(token, chat_id):
function replace_sticker_in_set (line 387) | async def replace_sticker_in_set(token, user_id, name, old_sticker, stic...
function set_sticker_set_thumbnail (line 392) | async def set_sticker_set_thumbnail(token, name, user_id, thumbnail, for...
function set_chat_sticker_set (line 405) | async def set_chat_sticker_set(token, chat_id, sticker_set_name):
function delete_chat_sticker_set (line 411) | async def delete_chat_sticker_set(token, chat_id):
function answer_web_app_query (line 417) | async def answer_web_app_query(token, web_app_query_id, result: types.In...
function save_prepared_inline_message (line 423) | async def save_prepared_inline_message(token, user_id, result: types.Inl...
function get_chat_member (line 437) | async def get_chat_member(token, chat_id, user_id):
function forward_message (line 443) | async def forward_message(
function copy_message (line 469) | async def copy_message(token, chat_id, from_chat_id, message_id, caption...
function send_checklist (line 508) | async def send_checklist(
function edit_message_checklist (line 528) | async def edit_message_checklist(
function send_dice (line 538) | async def send_dice(
function send_photo (line 573) | async def send_photo(
function send_paid_media (line 624) | async def send_paid_media(
function send_media_group (line 667) | async def send_media_group(
function send_location (line 699) | async def send_location(
function edit_message_live_location (line 741) | async def edit_message_live_location(
function stop_message_live_location (line 769) | async def stop_message_live_location(
function send_venue (line 789) | async def send_venue(
function send_contact (line 831) | async def send_contact(
function send_message_draft (line 866) | async def send_message_draft(
function send_chat_action (line 879) | async def send_chat_action(token, chat_id, action, timeout=None, message...
function send_video (line 891) | async def send_video(token, chat_id, data, duration=None, caption=None, ...
function send_animation (line 965) | async def send_animation(
function send_voice (line 1027) | async def send_voice(token, chat_id, voice, caption=None, duration=None,...
function send_video_note (line 1071) | async def send_video_note(token, chat_id, data, duration=None, length=No...
function send_audio (line 1121) | async def send_audio(token, chat_id, audio, caption=None, duration=None,...
function send_data (line 1177) | async def send_data(token, chat_id, data, data_type, reply_markup=None,...
function get_method_by_type (line 1235) | async def get_method_by_type(data_type):
function ban_chat_member (line 1242) | async def ban_chat_member(token, chat_id, user_id, until_date=None, revo...
function unban_chat_member (line 1254) | async def unban_chat_member(token, chat_id, user_id, only_if_banned):
function restrict_chat_member (line 1262) | async def restrict_chat_member(
function promote_chat_member (line 1278) | async def promote_chat_member(
function set_chat_administrator_custom_title (line 1324) | async def set_chat_administrator_custom_title(token, chat_id, user_id, c...
function set_chat_member_tag (line 1332) | async def set_chat_member_tag(token, chat_id, user_id, tag=None):
function ban_chat_sender_chat (line 1340) | async def ban_chat_sender_chat(token, chat_id, sender_chat_id):
function unban_chat_sender_chat (line 1346) | async def unban_chat_sender_chat(token, chat_id, sender_chat_id):
function set_chat_permissions (line 1351) | async def set_chat_permissions(token, chat_id, permissions, use_independ...
function create_chat_invite_link (line 1362) | async def create_chat_invite_link(token, chat_id, name, expire_date, mem...
function edit_chat_invite_link (line 1383) | async def edit_chat_invite_link(token, chat_id, invite_link, name, expir...
function create_chat_subscription_invite_link (line 1405) | async def create_chat_subscription_invite_link(token, chat_id, subscript...
function edit_chat_subscription_invite_link (line 1416) | async def edit_chat_subscription_invite_link(token, chat_id, invite_link...
function revoke_chat_invite_link (line 1427) | async def revoke_chat_invite_link(token, chat_id, invite_link):
function export_chat_invite_link (line 1436) | async def export_chat_invite_link(token, chat_id):
function approve_chat_join_request (line 1441) | async def approve_chat_join_request(token, chat_id, user_id):
function decline_chat_join_request (line 1450) | async def decline_chat_join_request(token, chat_id, user_id):
function set_chat_photo (line 1459) | async def set_chat_photo(token, chat_id, photo):
function delete_chat_photo (line 1472) | async def delete_chat_photo(token, chat_id):
function set_chat_title (line 1478) | async def set_chat_title(token, chat_id, title):
function set_my_description (line 1483) | async def set_my_description(token, description=None, language_code=None):
function get_my_description (line 1492) | async def get_my_description(token, language_code=None):
function set_my_short_description (line 1499) | async def set_my_short_description(token, short_description=None, langua...
function get_my_short_description (line 1508) | async def get_my_short_description(token, language_code=None):
function get_my_commands (line 1515) | async def get_my_commands(token, scope=None, language_code=None):
function set_my_name (line 1525) | async def set_my_name(token, name=None, language_code=None):
function get_my_name (line 1534) | async def get_my_name(token, language_code=None):
function set_my_profile_photo (line 1541) | async def set_my_profile_photo(token, photo):
function remove_my_profile_photo (line 1549) | async def remove_my_profile_photo(token):
function set_chat_menu_button (line 1553) | async def set_chat_menu_button(token, chat_id=None, menu_button=None):
function get_chat_menu_button (line 1563) | async def get_chat_menu_button(token, chat_id=None):
function set_my_default_administrator_rights (line 1572) | async def set_my_default_administrator_rights(token, rights=None, for_ch...
function get_my_default_administrator_rights (line 1582) | async def get_my_default_administrator_rights(token, for_channels=None):
function set_my_commands (line 1590) | async def set_my_commands(token, commands, scope=None, language_code=None):
function get_business_connection (line 1599) | async def get_business_connection(token, business_connection_id):
function delete_my_commands (line 1604) | async def delete_my_commands(token, scope=None, language_code=None):
function set_chat_description (line 1614) | async def set_chat_description(token, chat_id, description):
function pin_chat_message (line 1622) | async def pin_chat_message(token, chat_id, message_id, disable_notificat...
function unpin_chat_message (line 1632) | async def unpin_chat_message(token, chat_id, message_id, business_connec...
function unpin_all_chat_messages (line 1642) | async def unpin_all_chat_messages(token, chat_id):
function edit_message_text (line 1650) | async def edit_message_text(
function edit_message_caption (line 1676) | async def edit_message_caption(
function edit_message_media (line 1702) | async def edit_message_media(
function edit_message_reply_markup (line 1723) | async def edit_message_reply_markup(
function approve_suggested_post (line 1743) | async def approve_suggested_post(token, chat_id, message_id, send_date=N...
function decline_suggested_post (line 1751) | async def decline_suggested_post(token, chat_id, message_id, comment=None):
function delete_message (line 1758) | async def delete_message(token, chat_id, message_id, timeout=None):
function send_game (line 1768) | async def send_game(
function set_game_score (line 1797) | async def set_game_score(token, user_id, score, force=None, disable_edit...
function get_game_high_scores (line 1827) | async def get_game_high_scores(token, user_id, chat_id=None, message_id=...
function send_invoice (line 1851) | async def send_invoice(
function answer_shipping_query (line 1955) | async def answer_shipping_query(token, shipping_query_id, ok, shipping_o...
function answer_pre_checkout_query (line 1974) | async def answer_pre_checkout_query(token, pre_checkout_query_id, ok, er...
function get_my_star_balance (line 1990) | async def get_my_star_balance(token):
function get_star_transactions (line 1994) | async def get_star_transactions(token, offset=None, limit=None):
function refund_star_payment (line 2003) | async def refund_star_payment(token, user_id, telegram_payment_charge_id):
function edit_user_star_subscription (line 2009) | async def edit_user_star_subscription(token, user_id, telegram_payment_c...
function unpin_all_general_forum_topic_messages (line 2015) | async def unpin_all_general_forum_topic_messages(token, chat_id):
function answer_callback_query (line 2022) | async def answer_callback_query(token, callback_query_id, text=None, sho...
function get_user_chat_boosts (line 2047) | async def get_user_chat_boosts(token, chat_id, user_id):
function answer_inline_query (line 2052) | async def answer_inline_query(token, inline_query_id, results, cache_tim...
function get_sticker_set (line 2069) | async def get_sticker_set(token, name):
function get_custom_emoji_stickers (line 2073) | async def get_custom_emoji_stickers(token, custom_emoji_ids):
function set_sticker_keywords (line 2077) | async def set_sticker_keywords(token, sticker, keywords=None):
function set_sticker_mask_position (line 2085) | async def set_sticker_mask_position(token, sticker, mask_position=None):
function upload_sticker_file (line 2092) | async def upload_sticker_file(token, user_id, sticker, sticker_format):
function set_sticker_emoji_list (line 2098) | async def set_sticker_emoji_list(token, sticker, emoji_list):
function delete_sticker_set (line 2103) | async def delete_sticker_set(token, name):
function send_gift (line 2108) | async def send_gift(token, gift_id, text=None, text_parse_mode=None, tex...
function verify_user (line 2126) | async def verify_user(token, user_id, custom_description=None):
function verify_chat (line 2133) | async def verify_chat(token, chat_id, custom_description=None):
function remove_user_verification (line 2140) | async def remove_user_verification(token, user_id):
function remove_chat_verification (line 2145) | async def remove_chat_verification(token, chat_id):
function read_business_message (line 2151) | async def read_business_message(token, business_connection_id, chat_id, ...
function delete_business_messages (line 2157) | async def delete_business_messages(token, business_connection_id, messag...
function set_business_account_name (line 2163) | async def set_business_account_name(token, business_connection_id, first...
function set_business_account_username (line 2171) | async def set_business_account_username(token, business_connection_id, u...
function set_business_account_bio (line 2179) | async def set_business_account_bio(token, business_connection_id, bio=No...
function set_business_account_gift_settings (line 2186) | async def set_business_account_gift_settings(token, business_connection_...
function get_business_account_star_balance (line 2191) | async def get_business_account_star_balance(token, business_connection_id):
function transfer_business_account_stars (line 2196) | async def transfer_business_account_stars(token, business_connection_id,...
function get_business_account_gifts (line 2201) | async def get_business_account_gifts(token, business_connection_id, excl...
function get_user_gifts (line 2229) | async def get_user_gifts(token, user_id, exclude_unlimited=None, exclude...
function get_chat_gifts (line 2254) | async def get_chat_gifts(token, chat_id, exclude_unsaved=None, exclude_s...
function convert_gift_to_stars (line 2284) | async def convert_gift_to_stars(token, business_connection_id, owned_gif...
function upgrade_gift (line 2289) | async def upgrade_gift(token, business_connection_id, owned_gift_id, kee...
function transfer_gift (line 2298) | async def transfer_gift(token, business_connection_id, owned_gift_id, ne...
function post_story (line 2305) | async def post_story(token, business_connection_id, content, active_peri...
function repost_story (line 2327) | async def repost_story(token, business_connection_id, from_chat_id, from...
function edit_story (line 2339) | async def edit_story(token, business_connection_id, story_id, content, c...
function delete_story (line 2357) | async def delete_story(token, business_connection_id, story_id):
function gift_premium_subscription (line 2362) | async def gift_premium_subscription(token, user_id, month_count, star_co...
function set_business_account_profile_photo (line 2374) | async def set_business_account_profile_photo(token, business_connection_...
function remove_business_account_profile_photo (line 2383) | async def remove_business_account_profile_photo(token, business_connecti...
function get_available_gifts (line 2391) | async def get_available_gifts(token):
function set_custom_emoji_sticker_set_thumbnail (line 2395) | async def set_custom_emoji_sticker_set_thumbnail(token, name, custom_emo...
function set_sticker_set_title (line 2403) | async def set_sticker_set_title(token, name, title):
function create_new_sticker_set (line 2408) | async def create_new_sticker_set(
function add_sticker_to_set (line 2435) | async def add_sticker_to_set(token, user_id, name, sticker):
function set_sticker_position_in_set (line 2444) | async def set_sticker_position_in_set(token, sticker, position):
function delete_sticker_from_set (line 2450) | async def delete_sticker_from_set(token, sticker):
function create_invoice_link (line 2457) | async def create_invoice_link(token, title, description, payload, provid...
function send_poll (line 2504) | async def send_poll(
function create_forum_topic (line 2568) | async def create_forum_topic(token, chat_id, name, icon_color=None, icon...
function edit_forum_topic (line 2577) | async def edit_forum_topic(token, chat_id, message_thread_id, name=None,...
function close_forum_topic (line 2586) | async def close_forum_topic(token, chat_id, message_thread_id):
function reopen_forum_topic (line 2591) | async def reopen_forum_topic(token, chat_id, message_thread_id):
function delete_forum_topic (line 2596) | async def delete_forum_topic(token, chat_id, message_thread_id):
function unpin_all_forum_topic_messages (line 2601) | async def unpin_all_forum_topic_messages(token, chat_id, message_thread_...
function get_forum_topic_icon_stickers (line 2606) | async def get_forum_topic_icon_stickers(token):
function edit_general_forum_topic (line 2610) | async def edit_general_forum_topic(token, chat_id, name):
function close_general_forum_topic (line 2615) | async def close_general_forum_topic(token, chat_id):
function reopen_general_forum_topic (line 2620) | async def reopen_general_forum_topic(token, chat_id):
function hide_general_forum_topic (line 2625) | async def hide_general_forum_topic(token, chat_id):
function unhide_general_forum_topic (line 2630) | async def unhide_general_forum_topic(token, chat_id):
function delete_messages (line 2635) | async def delete_messages(token, chat_id, message_ids):
function forward_messages (line 2643) | async def forward_messages(token, chat_id, from_chat_id, message_ids, di...
function copy_messages (line 2663) | async def copy_messages(token, chat_id, from_chat_id, message_ids, disab...
function _convert_list_json_serializable (line 2686) | async def _convert_list_json_serializable(results):
function convert_input_media (line 2696) | async def convert_input_media(media):
function convert_input_media_array (line 2702) | async def convert_input_media_array(array):
function _no_encode (line 2721) | async def _no_encode(func):
function stop_poll (line 2730) | async def stop_poll(token, chat_id, message_id, reply_markup=None, busin...
class ApiException (line 2740) | class ApiException(Exception):
method __init__ (line 2748) | def __init__(self, msg, function_name, result):
class ApiHTTPException (line 2753) | class ApiHTTPException(ApiException):
method __init__ (line 2758) | def __init__(self, function_name, result: aiohttp.ClientResponse):
class ApiInvalidJSONException (line 2765) | class ApiInvalidJSONException(ApiException):
method __init__ (line 2770) | def __init__(self, function_name, result):
class ApiTelegramException (line 2777) | class ApiTelegramException(ApiException):
method __init__ (line 2781) | def __init__(self, function_name, result, result_json):
class RequestTimeout (line 2791) | class RequestTimeout(Exception):
FILE: telebot/asyncio_storage/base_storage.py
class StateStorageBase (line 4) | class StateStorageBase:
method __init__ (line 5) | def __init__(self) -> None:
method set_data (line 8) | async def set_data(self, chat_id, user_id, key, value,
method get_data (line 18) | async def get_data(self, chat_id, user_id):
method set_state (line 24) | async def set_state(self, chat_id, user_id, state,
method delete_state (line 39) | async def delete_state(self, chat_id, user_id,
method reset_data (line 49) | async def reset_data(self, chat_id, user_id,
method get_state (line 59) | async def get_state(self, chat_id, user_id,
method get_interactive_data (line 66) | def get_interactive_data(self, chat_id, user_id,
method save (line 77) | async def save(self, chat_id, user_id, data):
method _get_key (line 80) | def _get_key(
class StateDataContext (line 106) | class StateDataContext:
method __init__ (line 111) | def __init__(
method __aenter__ (line 128) | async def __aenter__(self):
method __aexit__ (line 139) | async def __aexit__(self, exc_type, exc_val, exc_tb):
FILE: telebot/asyncio_storage/memory_storage.py
class StateMemoryStorage (line 5) | class StateMemoryStorage(StateStorageBase):
method __init__ (line 23) | def __init__(
method set_state (line 35) | async def set_state(
method get_state (line 64) | async def get_state(
method delete_state (line 88) | async def delete_state(
method set_data (line 112) | async def set_data(
method get_data (line 138) | async def get_data(
method reset_data (line 159) | async def reset_data(
method get_interactive_data (line 183) | def get_interactive_data(
method save (line 200) | async def save(
method __str__ (line 224) | def __str__(self) -> str:
FILE: telebot/asyncio_storage/pickle_storage.py
function with_lock (line 15) | def with_lock(func: Callable) -> Callable:
class StatePickleStorage (line 23) | class StatePickleStorage(StateStorageBase):
method __init__ (line 48) | def __init__(
method _read_from_file (line 64) | async def _read_from_file(self) -> dict:
method _write_to_file (line 69) | async def _write_to_file(self, data: dict) -> None:
method create_dir (line 73) | def create_dir(self):
method set_state (line 84) | async def set_state(
method get_state (line 111) | async def get_state(
method delete_state (line 132) | async def delete_state(
method set_data (line 157) | async def set_data(
method get_data (line 187) | async def get_data(
method reset_data (line 208) | async def reset_data(
method get_interactive_data (line 232) | def get_interactive_data(
method save (line 250) | async def save(
method __str__ (line 273) | def __str__(self) -> str:
FILE: telebot/asyncio_storage/redis_storage.py
function async_with_lock (line 15) | def async_with_lock(func: Callable[..., Coroutine]) -> Callable[..., Cor...
function async_with_pipeline (line 23) | def async_with_pipeline(func: Callable[..., Coroutine]) -> Callable[...,...
class StateRedisStorage (line 34) | class StateRedisStorage(StateStorageBase):
method __init__ (line 69) | def __init__(
method set_state (line 100) | async def set_state(
method get_state (line 132) | async def get_state(
method delete_state (line 152) | async def delete_state(
method set_data (line 174) | async def set_data(
method get_data (line 205) | async def get_data(
method reset_data (line 227) | async def reset_data(
method get_interactive_data (line 251) | def get_interactive_data(
method save (line 270) | async def save(
method migrate_format (line 295) | def migrate_format(self, bot_id: int, prefix: Optional[str] = "telebot...
method __str__ (line 337) | def __str__(self) -> str:
FILE: telebot/callback_data.py
class CallbackDataFilter (line 35) | class CallbackDataFilter:
method __init__ (line 40) | def __init__(self, factory, config: typing.Dict[str, str]):
method check (line 44) | def check(self, query) -> bool:
class CallbackData (line 69) | class CallbackData:
method __init__ (line 75) | def __init__(self, *parts, prefix: str, sep=':'):
method new (line 88) | def new(self, *args, **kwargs) -> str:
method parse (line 126) | def parse(self, callback_data: str) -> typing.Dict[str, str]:
method filter (line 144) | def filter(self, **config) -> CallbackDataFilter:
FILE: telebot/custom_filters.py
class SimpleCustomFilter (line 9) | class SimpleCustomFilter(ABC):
method check (line 31) | def check(self, message):
class AdvancedCustomFilter (line 38) | class AdvancedCustomFilter(ABC):
method check (line 61) | def check(self, message, text):
class TextFilter (line 68) | class TextFilter:
method __init__ (line 94) | def __init__(self,
method _check_iterable (line 131) | def _check_iterable(self, iterable, filter_name: str):
method check (line 142) | def check(self, obj: Union[types.Message, types.CallbackQuery, types.I...
class TextMatchFilter (line 198) | class TextMatchFilter(AdvancedCustomFilter):
method check (line 211) | def check(self, message, text):
class TextContainsFilter (line 223) | class TextContainsFilter(AdvancedCustomFilter):
method check (line 239) | def check(self, message, text):
class TextStartsFilter (line 253) | class TextStartsFilter(AdvancedCustomFilter):
method check (line 267) | def check(self, message, text):
class ChatFilter (line 274) | class ChatFilter(AdvancedCustomFilter):
method check (line 287) | def check(self, message, text):
class ForwardFilter (line 296) | class ForwardFilter(SimpleCustomFilter):
method check (line 309) | def check(self, message):
class IsReplyFilter (line 316) | class IsReplyFilter(SimpleCustomFilter):
method check (line 329) | def check(self, message):
class LanguageFilter (line 338) | class LanguageFilter(AdvancedCustomFilter):
method check (line 351) | def check(self, message, text):
class IsAdminFilter (line 361) | class IsAdminFilter(SimpleCustomFilter):
method __init__ (line 374) | def __init__(self, bot):
method check (line 377) | def check(self, message):
class StateFilter (line 386) | class StateFilter(AdvancedCustomFilter):
method __init__ (line 397) | def __init__(self, bot):
method check (line 402) | def check(self, message, text):
class IsDigitFilter (line 439) | class IsDigitFilter(SimpleCustomFilter):
method check (line 451) | def check(self, message):
FILE: telebot/ext/aio/webhooks.py
class AsyncWebhookListener (line 26) | class AsyncWebhookListener:
method __init__ (line 27) | def __init__(self, bot,
method _check_dependencies (line 75) | def _check_dependencies(self):
method _prepare_endpoint_urls (line 85) | def _prepare_endpoint_urls(self):
method process_update (line 89) | async def process_update(self, request: Request, update: dict):
method run_app (line 107) | async def run_app(self):
FILE: telebot/ext/reloader.py
class EventHandler (line 11) | class EventHandler(FileSystemEventHandler):
method on_any_event (line 12) | def on_any_event(self, event: FileSystemEvent):
function restart_file (line 16) | def restart_file():
FILE: telebot/ext/sync/webhooks.py
class SyncWebhookListener (line 22) | class SyncWebhookListener:
method __init__ (line 23) | def __init__(self, bot,
method _check_dependencies (line 72) | def _check_dependencies():
method _prepare_endpoint_urls (line 82) | def _prepare_endpoint_urls(self):
method process_update (line 86) | def process_update(self, request: Request, update: dict):
method run_app (line 103) | def run_app(self):
FILE: telebot/formatting.py
function format_text (line 10) | def format_text(*args, separator="\n"):
function escape_html (line 33) | def escape_html(content: str) -> str:
function escape_markdown (line 47) | def escape_markdown(content: str) -> str:
function mbold (line 65) | def mbold(content: str, escape: Optional[bool]=True) -> str:
function hbold (line 81) | def hbold(content: str, escape: Optional[bool]=True) -> str:
function mitalic (line 97) | def mitalic(content: str, escape: Optional[bool]=True) -> str:
function hitalic (line 113) | def hitalic(content: str, escape: Optional[bool]=True) -> str:
function munderline (line 129) | def munderline(content: str, escape: Optional[bool]=True) -> str:
function hunderline (line 145) | def hunderline(content: str, escape: Optional[bool]=True) -> str:
function mstrikethrough (line 162) | def mstrikethrough(content: str, escape: Optional[bool]=True) -> str:
function hstrikethrough (line 178) | def hstrikethrough(content: str, escape: Optional[bool]=True) -> str:
function mspoiler (line 194) | def mspoiler(content: str, escape: Optional[bool]=True) -> str:
function hspoiler (line 210) | def hspoiler(content: str, escape: Optional[bool]=True) -> str:
function mlink (line 226) | def mlink(content: str, url: str, escape: Optional[bool]=True) -> str:
function hlink (line 245) | def hlink(content: str, url: str, escape: Optional[bool]=True) -> str:
function mcode (line 264) | def mcode(content: str, language: str="", escape: Optional[bool]=True) -...
function hcode (line 283) | def hcode(content: str, escape: Optional[bool]=True) -> str:
function hpre (line 299) | def hpre(content: str, escape: Optional[bool]=True, language: str="") ->...
function hide_link (line 318) | def hide_link(url: str) -> str:
function mcite (line 331) | def mcite(content: str, escape: Optional[bool] = True, expandable: Optio...
function hcite (line 354) | def hcite(content: str, escape: Optional[bool] = True, expandable: Optio...
function apply_html_entities (line 376) | def apply_html_entities(text: str, entities: Optional[List]=None, custom...
FILE: telebot/handler_backends.py
class HandlerBackend (line 15) | class HandlerBackend(object):
method __init__ (line 21) | def __init__(self, handlers=None):
method register_handler (line 26) | def register_handler(self, handler_group_id, handler):
method clear_handlers (line 29) | def clear_handlers(self, handler_group_id):
method get_handlers (line 32) | def get_handlers(self, handler_group_id):
class MemoryHandlerBackend (line 36) | class MemoryHandlerBackend(HandlerBackend):
method register_handler (line 40) | def register_handler(self, handler_group_id, handler):
method clear_handlers (line 46) | def clear_handlers(self, handler_group_id):
method get_handlers (line 49) | def get_handlers(self, handler_group_id):
method load_handlers (line 52) | def load_handlers(self, filename, del_file_after_loading):
class FileHandlerBackend (line 56) | class FileHandlerBackend(HandlerBackend):
method __init__ (line 60) | def __init__(self, handlers=None, filename='./.handler-saves/handlers....
method register_handler (line 66) | def register_handler(self, handler_group_id, handler):
method clear_handlers (line 73) | def clear_handlers(self, handler_group_id):
method get_handlers (line 77) | def get_handlers(self, handler_group_id):
method start_save_timer (line 82) | def start_save_timer(self):
method save_handlers (line 90) | def save_handlers(self):
method load_handlers (line 93) | def load_handlers(self, filename=None, del_file_after_loading=True):
method dump_handlers (line 101) | def dump_handlers(handlers, filename, file_mode="wb"):
method return_load_handlers (line 117) | def return_load_handlers(filename, del_file_after_loading=True):
class RedisHandlerBackend (line 131) | class RedisHandlerBackend(HandlerBackend):
method __init__ (line 135) | def __init__(self, handlers=None, host='localhost', port=6379, db=0, p...
method _key (line 142) | def _key(self, handle_group_id):
method register_handler (line 145) | def register_handler(self, handler_group_id, handler):
method clear_handlers (line 153) | def clear_handlers(self, handler_group_id):
method get_handlers (line 156) | def get_handlers(self, handler_group_id):
class BaseMiddleware (line 165) | class BaseMiddleware:
method __init__ (line 204) | def __init__(self):
method pre_process (line 207) | def pre_process(self, message, data):
method post_process (line 210) | def post_process(self, message, data, exception):
class SkipHandler (line 214) | class SkipHandler:
method __init__ (line 222) | def __init__(self) -> None:
class CancelUpdate (line 226) | class CancelUpdate:
method __init__ (line 234) | def __init__(self) -> None:
class ContinueHandling (line 238) | class ContinueHandling:
method __init__ (line 257) | def __init__(self) -> None:
FILE: telebot/service_utils.py
function is_string (line 13) | def is_string(var) -> bool:
function is_dict (line 20) | def is_dict(var) -> bool:
function is_bytes (line 33) | def is_bytes(var) -> bool:
function is_pil_image (line 46) | def is_pil_image(var) -> bool:
function pil_image_to_file (line 59) | def pil_image_to_file(image, extension='JPEG', quality='web_low'):
function chunks (line 70) | def chunks(lst, n):
function generate_random_token (line 77) | def generate_random_token() -> str:
FILE: telebot/states/__init__.py
class State (line 8) | class State:
method __init__ (line 18) | def __init__(self) -> None:
method __str__ (line 22) | def __str__(self) -> str:
class StatesGroup (line 26) | class StatesGroup:
method __init_subclass__ (line 36) | def __init_subclass__(cls) -> None:
method state_list (line 51) | def state_list(self):
function resolve_context (line 55) | def resolve_context(message, bot_id: int) -> tuple:
FILE: telebot/states/asyncio/context.py
class StateContext (line 9) | class StateContext:
method __init__ (line 24) | def __init__(self, message: Union[Message, CallbackQuery], bot: AsyncT...
method set (line 29) | async def set(self, state: Union[State, str]) -> bool:
method get (line 58) | async def get(self) -> str:
method delete (line 77) | async def delete(self) -> bool:
method reset_data (line 96) | async def reset_data(self) -> bool:
method data (line 113) | def data(self) -> dict:
method add_data (line 135) | async def add_data(self, **kwargs) -> None:
FILE: telebot/states/asyncio/middleware.py
class StateMiddleware (line 8) | class StateMiddleware(BaseMiddleware):
method __init__ (line 10) | def __init__(self, bot: AsyncTeleBot) -> None:
method pre_process (line 15) | async def pre_process(self, message, data):
method post_process (line 20) | async def post_process(self, message, data, exception):
FILE: telebot/states/sync/context.py
class StateContext (line 10) | class StateContext():
method __init__ (line 25) | def __init__(self, message: Union[Message, CallbackQuery], bot: str) -...
method set (line 30) | def set(self, state: Union[State, str]) -> bool:
method get (line 57) | def get(self) -> str:
method delete (line 74) | def delete(self) -> bool:
method reset_data (line 91) | def reset_data(self) -> bool:
method data (line 106) | def data(self) -> dict:
method add_data (line 126) | def add_data(self, **kwargs) -> None:
FILE: telebot/states/sync/middleware.py
class StateMiddleware (line 8) | class StateMiddleware(BaseMiddleware):
method __init__ (line 10) | def __init__(self, bot: TeleBot) -> None:
method pre_process (line 15) | def pre_process(self, message, data):
method post_process (line 20) | def post_process(self, message, data, exception):
FILE: telebot/storage/base_storage.py
class StateStorageBase (line 4) | class StateStorageBase:
method __init__ (line 5) | def __init__(self) -> None:
method set_data (line 8) | def set_data(self, chat_id, user_id, key, value,
method get_data (line 18) | def get_data(self, chat_id, user_id):
method set_state (line 24) | def set_state(self, chat_id, user_id, state,
method delete_state (line 39) | def delete_state(self, chat_id, user_id,
method reset_data (line 49) | def reset_data(self, chat_id, user_id,
method get_state (line 59) | def get_state(self, chat_id, user_id,
method get_interactive_data (line 66) | def get_interactive_data(self, chat_id, user_id,
method save (line 73) | def save(self, chat_id, user_id, data):
method _get_key (line 76) | def _get_key(
class StateDataContext (line 102) | class StateDataContext:
method __init__ (line 107) | def __init__(
method __enter__ (line 131) | def __enter__(self):
method __exit__ (line 134) | def __exit__(self, exc_type, exc_val, exc_tb):
FILE: telebot/storage/memory_storage.py
class StateMemoryStorage (line 5) | class StateMemoryStorage(StateStorageBase):
method __init__ (line 23) | def __init__(
method set_state (line 35) | def set_state(
method get_state (line 64) | def get_state(
method delete_state (line 88) | def delete_state(
method set_data (line 112) | def set_data(
method get_data (line 138) | def get_data(
method reset_data (line 159) | def reset_data(
method get_interactive_data (line 183) | def get_interactive_data(
method save (line 200) | def save(
method __str__ (line 224) | def __str__(self) -> str:
FILE: telebot/storage/pickle_storage.py
function with_lock (line 8) | def with_lock(func: Callable) -> Callable:
class StatePickleStorage (line 16) | class StatePickleStorage(StateStorageBase):
method __init__ (line 41) | def __init__(
method _read_from_file (line 54) | def _read_from_file(self) -> dict:
method _write_to_file (line 58) | def _write_to_file(self, data: dict) -> None:
method create_dir (line 62) | def create_dir(self):
method set_state (line 73) | def set_state(
method get_state (line 100) | def get_state(
method delete_state (line 121) | def delete_state(
method set_data (line 146) | def set_data(
method get_data (line 176) | def get_data(
method reset_data (line 197) | def reset_data(
method get_interactive_data (line 221) | def get_interactive_data(
method save (line 239) | def save(
method __str__ (line 262) | def __str__(self) -> str:
FILE: telebot/storage/redis_storage.py
class StateRedisStorage (line 12) | class StateRedisStorage(StateStorageBase):
method __init__ (line 47) | def __init__(
method set_state (line 76) | def set_state(
method get_state (line 114) | def get_state(
method delete_state (line 134) | def delete_state(
method set_data (line 153) | def set_data(
method get_data (line 187) | def get_data(
method reset_data (line 207) | def reset_data(
method get_interactive_data (line 235) | def get_interactive_data(
method save (line 252) | def save(
method migrate_format (line 281) | def migrate_format(self, bot_id: int, prefix: Optional[str] = "telebot...
method __str__ (line 323) | def __str__(self) -> str:
FILE: telebot/types.py
function log_deprecation_warning (line 28) | def log_deprecation_warning(warning_message, logging_level=logging.WARNI...
class JsonSerializable (line 37) | class JsonSerializable(object):
method to_json (line 43) | def to_json(self):
class Dictionaryable (line 55) | class Dictionaryable(object):
method to_dict (line 61) | def to_dict(self):
class JsonDeserializable (line 73) | class JsonDeserializable(object):
method de_json (line 80) | def de_json(cls, json_string):
method check_json (line 92) | def check_json(json_type, dict_copy = True):
method __str__ (line 110) | def __str__(self):
class Update (line 118) | class Update(JsonDeserializable):
method de_json (line 214) | def de_json(cls, json_string):
method __init__ (line 248) | def __init__(self, update_id, message, edited_message, channel_post, e...
class ChatMemberUpdated (line 279) | class ChatMemberUpdated(JsonDeserializable):
method de_json (line 314) | def de_json(cls, json_string):
method __init__ (line 324) | def __init__(self, chat, from_user, date, old_chat_member, new_chat_me...
method difference (line 337) | def difference(self) -> Dict[str, List]:
class ChatJoinRequest (line 357) | class ChatJoinRequest(JsonDeserializable):
method de_json (line 389) | def de_json(cls, json_string):
method __init__ (line 397) | def __init__(self, chat, from_user, user_chat_id, date, bio=None, invi...
class WebhookInfo (line 406) | class WebhookInfo(JsonDeserializable):
method de_json (line 448) | def de_json(cls, json_string):
method __init__ (line 453) | def __init__(self, url, has_custom_certificate, pending_update_count, ...
class User (line 467) | class User(JsonDeserializable, Dictionaryable, JsonSerializable):
method de_json (line 525) | def de_json(cls, json_string):
method __init__ (line 531) | def __init__(self, id, is_bot, first_name, last_name=None, username=No...
method full_name (line 552) | def full_name(self) -> str:
method to_json (line 561) | def to_json(self):
method to_dict (line 564) | def to_dict(self):
class GroupChat (line 584) | class GroupChat(JsonDeserializable):
method de_json (line 589) | def de_json(cls, json_string):
method __init__ (line 594) | def __init__(self, id, title, **kwargs):
class ChatFullInfo (line 600) | class ChatFullInfo(JsonDeserializable):
method de_json (line 774) | def de_json(cls, json_string):
method __init__ (line 809) | def __init__(self, id, type, title=None, username=None, first_name=None,
method can_send_gift (line 879) | def can_send_gift(self) -> bool:
class Chat (line 891) | class Chat(ChatFullInfo):
class MessageID (line 903) | class MessageID(JsonDeserializable):
method de_json (line 916) | def de_json(cls, json_string):
method __init__ (line 921) | def __init__(self, message_id, **kwargs):
class WebAppData (line 925) | class WebAppData(JsonDeserializable, Dictionaryable):
method de_json (line 943) | def de_json(cls, json_string):
method __init__ (line 948) | def __init__(self, data, button_text, **kwargs):
method to_dict (line 951) | def to_dict(self):
class Message (line 956) | class Message(JsonDeserializable):
method de_json (line 1318) | def de_json(cls, json_string):
method parse_chat (line 1614) | def parse_chat(cls, chat) -> Union[User, GroupChat]:
method parse_photo (line 1624) | def parse_photo(cls, photo_size_array) -> List[PhotoSize]:
method parse_entities (line 1634) | def parse_entities(cls, message_entity_array) -> List[MessageEntity]:
method __init__ (line 1643) | def __init__(self, message_id, from_user, date, chat, content_type, op...
method html_text (line 1755) | def html_text(self) -> Optional[str]:
method html_caption (line 1764) | def html_caption(self) -> Optional[str]:
method voice_chat_scheduled (line 1773) | def voice_chat_scheduled(self):
method voice_chat_started (line 1778) | def voice_chat_started(self):
method voice_chat_ended (line 1783) | def voice_chat_ended(self):
method voice_chat_participants_invited (line 1788) | def voice_chat_participants_invited(self):
method new_chat_member (line 1793) | def new_chat_member(self):
method forward_from (line 1798) | def forward_from(self):
method forward_from_chat (line 1805) | def forward_from_chat(self):
method forward_from_message_id (line 1814) | def forward_from_message_id(self):
method forward_signature (line 1821) | def forward_signature(self):
method forward_sender_name (line 1830) | def forward_sender_name(self):
method forward_date (line 1837) | def forward_date(self):
method user_shared (line 1844) | def user_shared(self):
method any_text (line 1849) | def any_text(self) -> Optional[str]:
method any_entities (line 1853) | def any_entities(self) -> Optional[List[MessageEntity]]:
class MessageEntity (line 1858) | class MessageEntity(Dictionaryable, JsonSerializable, JsonDeserializable):
method to_list_of_dicts (line 1900) | def to_list_of_dicts(entity_list) -> Union[List[Dict], None]:
method de_json (line 1912) | def de_json(cls, json_string):
method __init__ (line 1919) | def __init__(self, type, offset, length, url=None, user=None, language...
method to_json (line 1931) | def to_json(self):
method to_dict (line 1934) | def to_dict(self):
class Dice (line 1946) | class Dice(JsonSerializable, Dictionaryable, JsonDeserializable):
method de_json (line 1962) | def de_json(cls, json_string):
method __init__ (line 1967) | def __init__(self, value, emoji, **kwargs):
method to_json (line 1971) | def to_json(self):
method to_dict (line 1974) | def to_dict(self):
class PhotoSize (line 1979) | class PhotoSize(JsonDeserializable):
method de_json (line 2005) | def de_json(cls, json_string):
method __init__ (line 2010) | def __init__(self, file_id, file_unique_id, width, height, file_size=N...
class Audio (line 2018) | class Audio(JsonDeserializable):
method de_json (line 2058) | def de_json(cls, json_string):
method __init__ (line 2067) | def __init__(self, file_id, file_unique_id, duration, performer=None, ...
method thumb (line 2080) | def thumb(self) -> Optional[PhotoSize]:
class Voice (line 2085) | class Voice(JsonDeserializable):
method de_json (line 2113) | def de_json(cls, json_string):
method __init__ (line 2118) | def __init__(self, file_id, file_unique_id, duration, mime_type=None, ...
class Document (line 2126) | class Document(JsonDeserializable):
method de_json (line 2157) | def de_json(cls, json_string):
method __init__ (line 2166) | def __init__(self, file_id, file_unique_id, thumbnail=None, file_name=...
method thumb (line 2175) | def thumb(self) -> Optional[PhotoSize]:
class Video (line 2180) | class Video(JsonDeserializable):
method de_json (line 2229) | def de_json(cls, json_string):
method __init__ (line 2240) | def __init__(self, file_id, file_unique_id, width, height, duration, t...
method thumb (line 2256) | def thumb(self) -> Optional[PhotoSize]:
class VideoNote (line 2261) | class VideoNote(JsonDeserializable):
method de_json (line 2290) | def de_json(cls, json_string):
method __init__ (line 2297) | def __init__(self, file_id, file_unique_id, length, duration, thumbnai...
method thumb (line 2306) | def thumb(self) -> Optional[PhotoSize]:
class Contact (line 2311) | class Contact(JsonDeserializable):
method de_json (line 2338) | def de_json(cls, json_string):
method __init__ (line 2343) | def __init__(self, phone_number, first_name, last_name=None, user_id=N...
class Location (line 2351) | class Location(JsonDeserializable, JsonSerializable, Dictionaryable):
method de_json (line 2381) | def de_json(cls, json_string):
method __init__ (line 2386) | def __init__(self, longitude, latitude, horizontal_accuracy=None,
method to_json (line 2395) | def to_json(self):
method to_dict (line 2398) | def to_dict(self):
class Venue (line 2409) | class Venue(JsonDeserializable):
method de_json (line 2441) | def de_json(cls, json_string):
method __init__ (line 2447) | def __init__(self, location, title, address, foursquare_id=None, fours...
class UserProfilePhotos (line 2458) | class UserProfilePhotos(JsonDeserializable):
method de_json (line 2474) | def de_json(cls, json_string):
method __init__ (line 2482) | def __init__(self, total_count, photos=None, **kwargs):
class File (line 2487) | class File(JsonDeserializable):
method de_json (line 2513) | def de_json(cls, json_string):
method __init__ (line 2518) | def __init__(self, file_id, file_unique_id, file_size=None, file_path=...
class ForceReply (line 2526) | class ForceReply(JsonSerializable):
method __init__ (line 2548) | def __init__(self, selective: Optional[bool]=None, input_field_placeho...
method to_json (line 2552) | def to_json(self):
class ReplyKeyboardRemove (line 2562) | class ReplyKeyboardRemove(JsonSerializable):
method __init__ (line 2584) | def __init__(self, selective: Optional[bool]=None):
method to_json (line 2587) | def to_json(self):
class WebAppInfo (line 2594) | class WebAppInfo(JsonDeserializable, Dictionaryable):
method de_json (line 2607) | def de_json(cls, json_string):
method __init__ (line 2612) | def __init__(self, url, **kwargs):
method to_dict (line 2615) | def to_dict(self):
class ReplyKeyboardMarkup (line 2620) | class ReplyKeyboardMarkup(JsonSerializable):
method __init__ (line 2676) | def __init__(self, resize_keyboard: Optional[bool]=None, one_time_keyb...
method add (line 2693) | def add(self, *args, row_width=None) -> 'ReplyKeyboardMarkup':
method row (line 2732) | def row(self, *args) -> 'ReplyKeyboardMarkup':
method to_json (line 2747) | def to_json(self):
class KeyboardButtonPollType (line 2763) | class KeyboardButtonPollType(Dictionaryable):
method __init__ (line 2775) | def __init__(self, type=None):
method to_dict (line 2778) | def to_dict(self):
class KeyboardButtonRequestUsers (line 2782) | class KeyboardButtonRequestUsers(Dictionaryable):
method __init__ (line 2816) | def __init__(
method to_dict (line 2828) | def to_dict(self) -> dict:
class KeyboardButtonRequestUser (line 2845) | class KeyboardButtonRequestUser(KeyboardButtonRequestUsers):
method __init__ (line 2847) | def __init__(
class KeyboardButtonRequestChat (line 2854) | class KeyboardButtonRequestChat(Dictionaryable):
method __init__ (line 2903) | def __init__(self, request_id: int, chat_is_channel: bool, chat_is_for...
method to_dict (line 2921) | def to_dict(self) -> dict:
class KeyboardButton (line 2945) | class KeyboardButton(Dictionaryable, JsonSerializable):
method __init__ (line 2993) | def __init__(self, text: str, request_contact: Optional[bool]=None,
method to_json (line 3014) | def to_json(self):
method to_dict (line 3017) | def to_dict(self):
class InlineKeyboardMarkup (line 3038) | class InlineKeyboardMarkup(Dictionaryable, JsonSerializable, JsonDeseria...
method de_json (line 3073) | def de_json(cls, json_string):
method __init__ (line 3079) | def __init__(self, keyboard=None, row_width=3):
method add (line 3088) | def add(self, *args, row_width=None) -> 'InlineKeyboardMarkup':
method row (line 3122) | def row(self, *args) -> 'InlineKeyboardMarkup':
method to_json (line 3140) | def to_json(self):
method to_dict (line 3143) | def to_dict(self):
class InlineKeyboardButton (line 3149) | class InlineKeyboardButton(Dictionaryable, JsonSerializable, JsonDeseria...
method de_json (line 3215) | def de_json(cls, json_string):
method __init__ (line 3229) | def __init__(self, text: str, url: Optional[str]=None, callback_data: ...
method to_json (line 3247) | def to_json(self):
method to_dict (line 3250) | def to_dict(self):
class LoginUrl (line 3279) | class LoginUrl(Dictionaryable, JsonSerializable, JsonDeserializable):
method de_json (line 3308) | def de_json(cls, json_string):
method __init__ (line 3313) | def __init__(self, url: str, forward_text: Optional[str]=None, bot_use...
method to_json (line 3320) | def to_json(self):
method to_dict (line 3323) | def to_dict(self):
class CallbackQuery (line 3335) | class CallbackQuery(JsonDeserializable):
method de_json (line 3369) | def de_json(cls, json_string):
method __init__ (line 3386) | def __init__(
class ChatPhoto (line 3399) | class ChatPhoto(JsonDeserializable):
method de_json (line 3425) | def de_json(cls, json_string):
method __init__ (line 3430) | def __init__(self, small_file_id, small_file_unique_id, big_file_id, b...
class ChatMember (line 3437) | class ChatMember(JsonDeserializable, ABC):
method __init__ (line 3452) | def __init__(self, user, status, **kwargs):
method de_json (line 3457) | def de_json(cls, json_string):
class ChatMemberOwner (line 3480) | class ChatMemberOwner(ChatMember):
method __init__ (line 3501) | def __init__(self, user, status, is_anonymous, custom_title=None, **kw...
class ChatMemberAdministrator (line 3508) | class ChatMemberAdministrator(ChatMember):
method __init__ (line 3584) | def __init__(self, user, status, can_be_edited, is_anonymous, can_mana...
method can_manage_voice_chats (line 3611) | def can_manage_voice_chats(self):
class ChatMemberMember (line 3617) | class ChatMemberMember(ChatMember):
method __init__ (line 3638) | def __init__(self, user, status, until_date=None, tag=None, **kwargs):
class ChatMemberRestricted (line 3645) | class ChatMemberRestricted(ChatMember):
method __init__ (line 3714) | def __init__(self, user, status, is_member, can_send_messages, can_sen...
class ChatMemberLeft (line 3741) | class ChatMemberLeft(ChatMember):
class ChatMemberBanned (line 3760) | class ChatMemberBanned(ChatMember):
method __init__ (line 3778) | def __init__(self, user, status, until_date=None, **kwargs):
class ChatPermissions (line 3783) | class ChatPermissions(JsonDeserializable, JsonSerializable, Dictionaryab...
method de_json (line 3845) | def de_json(cls, json_string):
method __init__ (line 3850) | def __init__(self, can_send_messages=None, can_send_media_messages=Non...
method to_json (line 3885) | def to_json(self):
method to_dict (line 3888) | def to_dict(self):
class BotCommand (line 3925) | class BotCommand(JsonSerializable, JsonDeserializable, Dictionaryable):
method de_json (line 3942) | def de_json(cls, json_string):
method __init__ (line 3947) | def __init__(self, command, description, **kwargs):
method to_json (line 3951) | def to_json(self):
method to_dict (line 3954) | def to_dict(self):
class BotCommandScope (line 3961) | class BotCommandScope(ABC, JsonSerializable):
method __init__ (line 4003) | def __init__(self, type='default', chat_id=None, user_id=None):
method to_json (line 4008) | def to_json(self):
class BotCommandScopeDefault (line 4018) | class BotCommandScopeDefault(BotCommandScope):
method __init__ (line 4030) | def __init__(self):
class BotCommandScopeAllPrivateChats (line 4039) | class BotCommandScopeAllPrivateChats(BotCommandScope):
method __init__ (line 4051) | def __init__(self):
class BotCommandScopeAllGroupChats (line 4059) | class BotCommandScopeAllGroupChats(BotCommandScope):
method __init__ (line 4071) | def __init__(self):
class BotCommandScopeAllChatAdministrators (line 4079) | class BotCommandScopeAllChatAdministrators(BotCommandScope):
method __init__ (line 4091) | def __init__(self):
class BotCommandScopeChat (line 4099) | class BotCommandScopeChat(BotCommandScope):
method __init__ (line 4115) | def __init__(self, chat_id: Optional[Union[str, int]]=None):
class BotCommandScopeChatAdministrators (line 4120) | class BotCommandScopeChatAdministrators(BotCommandScope):
method __init__ (line 4136) | def __init__(self, chat_id: Optional[Union[str, int]]=None):
class BotCommandScopeChatMember (line 4141) | class BotCommandScopeChatMember(BotCommandScope):
method __init__ (line 4160) | def __init__(self, chat_id: Optional[Union[str, int]]=None, user_id: O...
class InlineQuery (line 4167) | class InlineQuery(JsonDeserializable):
method de_json (line 4198) | def de_json(cls, json_string):
method __init__ (line 4206) | def __init__(self, id, from_user, query, offset, chat_type=None, locat...
class InputTextMessageContent (line 4215) | class InputTextMessageContent(Dictionaryable):
method __init__ (line 4241) | def __init__(self, message_text: str, parse_mode: Optional[str] = None...
method to_dict (line 4255) | def to_dict(self):
class InputLocationMessageContent (line 4266) | class InputLocationMessageContent(Dictionaryable):
method __init__ (line 4293) | def __init__(self, latitude, longitude, horizontal_accuracy=None, live...
method to_dict (line 4301) | def to_dict(self):
class InputVenueMessageContent (line 4314) | class InputVenueMessageContent(Dictionaryable):
method __init__ (line 4348) | def __init__(self, latitude, longitude, title, address, foursquare_id=...
method to_dict (line 4359) | def to_dict(self):
class InputContactMessageContent (line 4377) | class InputContactMessageContent(Dictionaryable):
method __init__ (line 4398) | def __init__(self, phone_number, first_name, last_name=None, vcard=None):
method to_dict (line 4404) | def to_dict(self):
class InputInvoiceMessageContent (line 4413) | class InputInvoiceMessageContent(Dictionaryable):
method __init__ (line 4494) | def __init__(self, title: str, description: str, payload: str, provide...
method to_dict (line 4520) | def to_dict(self):
class ChosenInlineResult (line 4561) | class ChosenInlineResult(JsonDeserializable):
method de_json (line 4587) | def de_json(cls, json_string):
method __init__ (line 4595) | def __init__(self, result_id, from_user, query, location=None, inline_...
class InlineQueryResultBase (line 4604) | class InlineQueryResultBase(ABC, Dictionaryable, JsonSerializable):
method __init__ (line 4632) | def __init__(self, type: str, id: str, title: Optional[str] = None, ca...
method to_json (line 4643) | def to_json(self):
method to_dict (line 4646) | def to_dict(self):
class SentWebAppMessage (line 4666) | class SentWebAppMessage(JsonDeserializable, Dictionaryable):
method de_json (line 4680) | def de_json(cls, json_string):
method __init__ (line 4685) | def __init__(self, inline_message_id=None, **kwargs):
method to_dict (line 4688) | def to_dict(self):
class InlineQueryResultArticle (line 4696) | class InlineQueryResultArticle(InlineQueryResultBase):
method __init__ (line 4739) | def __init__(self, id: str, title: str, input_message_content: InputMe...
method thumb_url (line 4757) | def thumb_url(self) -> str:
method thumb_width (line 4762) | def thumb_width(self) -> int:
method thumb_height (line 4767) | def thumb_height(self) -> int:
method to_dict (line 4771) | def to_dict(self):
class InlineQueryResultPhoto (line 4789) | class InlineQueryResultPhoto(InlineQueryResultBase):
method __init__ (line 4842) | def __init__(self, id: str, photo_url: str, thumbnail_url: str, photo_...
method thumb_url (line 4858) | def thumb_url(self) -> str:
method to_dict (line 4862) | def to_dict(self):
class InlineQueryResultGif (line 4878) | class InlineQueryResultGif(InlineQueryResultBase):
method __init__ (line 4934) | def __init__(self, id: str, gif_url: str, thumbnail_url: str, gif_widt...
method thumb_url (line 4952) | def thumb_url(self) -> str:
method thumb_mime_type (line 4957) | def thumb_mime_type(self) -> str:
method to_dict (line 4961) | def to_dict(self):
class InlineQueryResultMpeg4Gif (line 4979) | class InlineQueryResultMpeg4Gif(InlineQueryResultBase):
method __init__ (line 5035) | def __init__(self, id: str, mpeg4_url: str, thumbnail_url: str, mpeg4_...
method thumb_url (line 5052) | def thumb_url(self) -> str:
method thumb_mime_type (line 5057) | def thumb_mime_type(self) -> str:
method to_dict (line 5061) | def to_dict(self):
class InlineQueryResultVideo (line 5079) | class InlineQueryResultVideo(InlineQueryResultBase):
method __init__ (line 5139) | def __init__(self, id: str, video_url: str, mime_type: str, thumbnail_...
method thumb_url (line 5158) | def thumb_url(self) -> str:
method to_dict (line 5162) | def to_dict(self):
class InlineQueryResultAudio (line 5179) | class InlineQueryResultAudio(InlineQueryResultBase):
method __init__ (line 5223) | def __init__(self, id: str, audio_url: str, title: str, caption: Optio...
method to_dict (line 5234) | def to_dict(self):
class InlineQueryResultVoice (line 5245) | class InlineQueryResultVoice(InlineQueryResultBase):
method __init__ (line 5286) | def __init__(self, id: str, voice_url: str, title: str, caption: Optio...
method to_dict (line 5296) | def to_dict(self):
class InlineQueryResultDocument (line 5305) | class InlineQueryResultDocument(InlineQueryResultBase):
method __init__ (line 5358) | def __init__(self, id: str, title: str, document_url: str, mime_type: ...
method thumb_url (line 5375) | def thumb_url(self) -> str:
method thumb_width (line 5380) | def thumb_width(self) -> int:
method thumb_height (line 5385) | def thumb_height(self) -> int:
method to_dict (line 5389) | def to_dict(self):
class InlineQueryResultLocation (line 5405) | class InlineQueryResultLocation(InlineQueryResultBase):
method __init__ (line 5456) | def __init__(self, id: str, title: str, latitude: float, longitude: fl...
method thumb_url (line 5474) | def thumb_url(self) -> str:
method thumb_width (line 5479) | def thumb_width(self) -> int:
method thumb_height (line 5484) | def thumb_height(self) -> int:
method to_dict (line 5488) | def to_dict(self):
class InlineQueryResultVenue (line 5510) | class InlineQueryResultVenue(InlineQueryResultBase):
method __init__ (line 5565) | def __init__(self, id: str, title: str, latitude: float, longitude: fl...
method thumb_url (line 5584) | def thumb_url(self) -> str:
method thumb_width (line 5589) | def thumb_width(self) -> int:
method thumb_height (line 5594) | def thumb_height(self) -> int:
method to_dict (line 5598) | def to_dict(self):
class InlineQueryResultContact (line 5621) | class InlineQueryResultContact(InlineQueryResultBase):
method __init__ (line 5664) | def __init__(self, id: str, phone_number: str, first_name: str, last_n...
method thumb_url (line 5679) | def thumb_url(self) -> str:
method thumb_width (line 5684) | def thumb_width(self) -> int:
method thumb_height (line 5689) | def thumb_height(self) -> int:
method to_dict (line 5693) | def to_dict(self):
class InlineQueryResultGame (line 5711) | class InlineQueryResultGame(InlineQueryResultBase):
method __init__ (line 5732) | def __init__(self, id: str, game_short_name: str, reply_markup: Option...
method to_dict (line 5736) | def to_dict(self):
class InlineQueryResultCachedBase (line 5742) | class InlineQueryResultCachedBase(ABC, JsonSerializable):
method __init__ (line 5746) | def __init__(self):
method to_json (line 5760) | def to_json(self):
class InlineQueryResultCachedPhoto (line 5784) | class InlineQueryResultCachedPhoto(InlineQueryResultCachedBase):
method __init__ (line 5828) | def __init__(self, id: str, photo_file_id: str, title: Optional[str] =...
class InlineQueryResultCachedGif (line 5850) | class InlineQueryResultCachedGif(InlineQueryResultCachedBase):
method __init__ (line 5890) | def __init__(self, id: str, gif_file_id: str, title: Optional[str] = N...
class InlineQueryResultCachedMpeg4Gif (line 5911) | class InlineQueryResultCachedMpeg4Gif(InlineQueryResultCachedBase):
method __init__ (line 5951) | def __init__(self, id: str, mpeg4_file_id: str, title: Optional[str] =...
class InlineQueryResultCachedSticker (line 5971) | class InlineQueryResultCachedSticker(InlineQueryResultCachedBase):
method __init__ (line 5995) | def __init__(self, id: str, sticker_file_id: str, reply_markup: Option...
class InlineQueryResultCachedDocument (line 6008) | class InlineQueryResultCachedDocument(InlineQueryResultCachedBase):
method __init__ (line 6050) | def __init__(self, id: str, document_file_id: str, title: str, descrip...
class InlineQueryResultCachedVideo (line 6070) | class InlineQueryResultCachedVideo(InlineQueryResultCachedBase):
method __init__ (line 6115) | def __init__(self, id: str, video_file_id: str, title: str, descriptio...
class InlineQueryResultCachedVoice (line 6136) | class InlineQueryResultCachedVoice(InlineQueryResultCachedBase):
method __init__ (line 6175) | def __init__(self, id: str, voice_file_id: str, title: str, caption: O...
class InlineQueryResultCachedAudio (line 6193) | class InlineQueryResultCachedAudio(InlineQueryResultCachedBase):
method __init__ (line 6229) | def __init__(self, id: str, audio_file_id: str, caption: Optional[str]...
class Game (line 6246) | class Game(JsonDeserializable):
method de_json (line 6276) | def de_json(cls, json_string):
method parse_photo (line 6287) | def parse_photo(cls, photo_size_array) -> List[PhotoSize]:
method parse_entities (line 6297) | def parse_entities(cls, message_entity_array) -> List[MessageEntity]:
method __init__ (line 6306) | def __init__(self, title, description, photo, text=None, text_entities...
class Animation (line 6315) | class Animation(JsonDeserializable):
method de_json (line 6355) | def de_json(cls, json_string):
method __init__ (line 6364) | def __init__(self, file_id, file_unique_id, width=None, height=None, d...
method thumb (line 6377) | def thumb(self) -> Optional[PhotoSize]:
class GameHighScore (line 6382) | class GameHighScore(JsonDeserializable):
method de_json (line 6401) | def de_json(cls, json_string):
method __init__ (line 6407) | def __init__(self, position: int, user: User, score: int, **kwargs):
class LabeledPrice (line 6415) | class LabeledPrice(JsonSerializable, Dictionaryable):
method __init__ (line 6432) | def __init__(self, label, amount):
method to_dict (line 6436) | def to_dict(self):
method to_json (line 6441) | def to_json(self):
class Invoice (line 6445) | class Invoice(JsonDeserializable):
method de_json (line 6472) | def de_json(cls, json_string):
method __init__ (line 6477) | def __init__(self, title, description, start_parameter, currency, tota...
class ShippingAddress (line 6485) | class ShippingAddress(JsonDeserializable):
method de_json (line 6513) | def de_json(cls, json_string):
method __init__ (line 6518) | def __init__(self, country_code, state, city, street_line1, street_lin...
class OrderInfo (line 6527) | class OrderInfo(JsonDeserializable):
method de_json (line 6549) | def de_json(cls, json_string):
method __init__ (line 6555) | def __init__(self, name=None, phone_number=None, email=None, shipping_...
class ShippingOption (line 6563) | class ShippingOption(JsonSerializable):
method __init__ (line 6581) | def __init__(self, id, title):
method add_price (line 6586) | def add_price(self, *args) -> 'ShippingOption':
method to_json (line 6599) | def to_json(self):
class SuccessfulPayment (line 6607) | class SuccessfulPayment(JsonDeserializable):
method de_json (line 6649) | def de_json(cls, json_string):
method __init__ (line 6655) | def __init__(self, currency, total_amount, invoice_payload, shipping_o...
class ShippingQuery (line 6671) | class ShippingQuery(JsonDeserializable):
method de_json (line 6693) | def de_json(cls, json_string):
method __init__ (line 6700) | def __init__(self, id, from_user, invoice_payload, shipping_address, *...
class PreCheckoutQuery (line 6708) | class PreCheckoutQuery(JsonDeserializable):
method de_json (line 6741) | def de_json(cls, json_string):
method __init__ (line 6748) | def __init__(self, id, from_user, currency, total_amount, invoice_payl...
class StickerSet (line 6760) | class StickerSet(JsonDeserializable):
method de_json (line 6785) | def de_json(cls, json_string):
method __init__ (line 6798) | def __init__(self, name, title, sticker_type, stickers, thumbnail=None...
method thumb (line 6806) | def thumb(self) -> Optional[PhotoSize]:
method contains_masks (line 6811) | def contains_masks(self) -> bool:
method is_animated (line 6816) | def is_animated(self) -> bool:
method is_video (line 6821) | def is_video(self) -> bool:
class Sticker (line 6827) | class Sticker(JsonDeserializable):
method de_json (line 6887) | def de_json(cls, json_string):
method __init__ (line 6900) | def __init__(self, file_id, file_unique_id, type, width, height, is_an...
method thumb (line 6920) | def thumb(self) -> Optional[PhotoSize]:
class MaskPosition (line 6925) | class MaskPosition(Dictionaryable, JsonDeserializable, JsonSerializable):
method de_json (line 6951) | def de_json(cls, json_string):
method __init__ (line 6956) | def __init__(self, point, x_shift, y_shift, scale, **kwargs):
method to_json (line 6962) | def to_json(self):
method to_dict (line 6965) | def to_dict(self):
class InputMedia (line 6972) | class InputMedia(Dictionaryable, JsonSerializable):
method __init__ (line 6982) | def __init__(self, type, media, caption=None, parse_mode=None, caption...
method to_json (line 7011) | def to_json(self):
method to_dict (line 7014) | def to_dict(self):
method convert_input_media (line 7026) | def convert_input_media(self):
class InputMediaPhoto (line 7040) | class InputMediaPhoto(InputMedia):
method __init__ (line 7071) | def __init__(self, media: Union[str, InputFile], caption: Optional[str...
method to_dict (line 7083) | def to_dict(self):
class InputMediaVideo (line 7092) | class InputMediaVideo(InputMedia):
method __init__ (line 7150) | def __init__(self, media: Union[str, InputFile], thumbnail: Optional[U...
method thumb (line 7169) | def thumb(self) -> Optional[Union[str, Any]]:
method to_dict (line 7173) | def to_dict(self):
class InputMediaAnimation (line 7194) | class InputMediaAnimation(InputMedia):
method __init__ (line 7242) | def __init__(self, media: Union[str, InputFile], thumbnail: Optional[U...
method thumb (line 7257) | def thumb(self) -> Optional[Union[str, Any]]:
method to_dict (line 7261) | def to_dict(self):
class InputMediaAudio (line 7276) | class InputMediaAudio(InputMedia):
method __init__ (line 7317) | def __init__(self, media: Union[str, InputFile], thumbnail: Optional[U...
method thumb (line 7328) | def thumb(self) -> Optional[Union[str, Any]]:
method to_dict (line 7332) | def to_dict(self):
class InputMediaDocument (line 7343) | class InputMediaDocument(InputMedia):
method __init__ (line 7379) | def __init__(self, media: Union[str, InputFile], thumbnail: Optional[U...
method thumb (line 7388) | def thumb(self) -> Optional[Union[str, Any]]:
method to_dict (line 7392) | def to_dict(self):
class PollOption (line 7399) | class PollOption(JsonDeserializable):
method de_json (line 7418) | def de_json(cls, json_string):
method __init__ (line 7425) | def __init__(self, text, voter_count = 0, text_entities=None, **kwargs):
class InputPollOption (line 7435) | class InputPollOption(JsonSerializable):
method __init__ (line 7453) | def __init__(self, text: str, text_parse_mode: Optional[str] = None, t...
method to_json (line 7459) | def to_json(self):
method to_dict (line 7462) | def to_dict(self):
class Poll (line 7474) | class Poll(JsonDeserializable):
method de_json (line 7526) | def de_json(cls, json_string):
method __init__ (line 7540) | def __init__(
method add (line 7567) | def add(self, option):
class PollAnswer (line 7580) | class PollAnswer(JsonSerializable, JsonDeserializable, Dictionaryable):
method de_json (line 7602) | def de_json(cls, json_string):
method __init__ (line 7611) | def __init__(self, poll_id: str, option_ids: List[int], user: Optional...
method to_json (line 7618) | def to_json(self):
method to_dict (line 7621) | def to_dict(self):
class ChatLocation (line 7635) | class ChatLocation(JsonSerializable, JsonDeserializable, Dictionaryable):
method de_json (line 7651) | def de_json(cls, json_string):
method __init__ (line 7657) | def __init__(self, location: Location, address: str, **kwargs):
method to_json (line 7661) | def to_json(self):
method to_dict (line 7664) | def to_dict(self):
class ChatInviteLink (line 7671) | class ChatInviteLink(JsonSerializable, JsonDeserializable, Dictionaryable):
method de_json (line 7710) | def de_json(cls, json_string):
method __init__ (line 7716) | def __init__(self, invite_link: str, creator: User, creates_join_reque...
method to_json (line 7729) | def to_json(self):
method to_dict (line 7732) | def to_dict(self):
class ProximityAlertTriggered (line 7751) | class ProximityAlertTriggered(JsonDeserializable):
method de_json (line 7770) | def de_json(cls, json_string):
method __init__ (line 7775) | def __init__(self, traveler, watcher, distance, **kwargs):
class VideoChatStarted (line 7781) | class VideoChatStarted(JsonDeserializable):
method de_json (line 7786) | def de_json(cls, json_string):
method __init__ (line 7789) | def __init__(self):
class VoiceChatStarted (line 7792) | class VoiceChatStarted(VideoChatStarted):
method __init__ (line 7797) | def __init__(self):
class VideoChatScheduled (line 7802) | class VideoChatScheduled(JsonDeserializable):
method de_json (line 7816) | def de_json(cls, json_string):
method __init__ (line 7821) | def __init__(self, start_date, **kwargs):
class VoiceChatScheduled (line 7825) | class VoiceChatScheduled(VideoChatScheduled):
method __init__ (line 7829) | def __init__(self, *args, **kwargs):
class VideoChatEnded (line 7834) | class VideoChatEnded(JsonDeserializable):
method de_json (line 7847) | def de_json(cls, json_string):
method __init__ (line 7852) | def __init__(self, duration, **kwargs):
class VoiceChatEnded (line 7856) | class VoiceChatEnded(VideoChatEnded):
method __init__ (line 7860) | def __init__(self, *args, **kwargs):
class VideoChatParticipantsInvited (line 7866) | class VideoChatParticipantsInvited(JsonDeserializable):
method de_json (line 7879) | def de_json(cls, json_string):
method __init__ (line 7885) | def __init__(self, users=None, **kwargs):
class VoiceChatParticipantsInvited (line 7889) | class VoiceChatParticipantsInvited(VideoChatParticipantsInvited):
method __init__ (line 7893) | def __init__(self, *args, **kwargs):
class MessageAutoDeleteTimerChanged (line 7898) | class MessageAutoDeleteTimerChanged(JsonDeserializable):
method de_json (line 7911) | def de_json(cls, json_string):
method __init__ (line 7916) | def __init__(self, message_auto_delete_time, **kwargs):
class MenuButton (line 7920) | class MenuButton(JsonDeserializable, JsonSerializable, Dictionaryable):
method de_json (line 7932) | def de_json(cls, json_string):
method to_json (line 7942) | def to_json(self):
method to_dict (line 7948) | def to_dict(self):
class MenuButtonCommands (line 7956) | class MenuButtonCommands(MenuButton):
method __init__ (line 7969) | def __init__(self, type: str = None, **kwargs):
method to_dict (line 7972) | def to_dict(self):
method to_json (line 7975) | def to_json(self):
class MenuButtonWebApp (line 7980) | class MenuButtonWebApp(MenuButton):
method __init__ (line 8002) | def __init__(self, type: str, text: str, web_app: WebAppInfo, **kwargs):
method to_dict (line 8007) | def to_dict(self):
method to_json (line 8010) | def to_json(self):
class MenuButtonDefault (line 8015) | class MenuButtonDefault(MenuButton):
method __init__ (line 8027) | def __init__(self, type: str = None, **kwargs):
method to_dict (line 8030) | def to_dict(self):
method to_json (line 8033) | def to_json(self):
class ChatAdministratorRights (line 8037) | class ChatAdministratorRights(JsonDeserializable, JsonSerializable, Dict...
method de_json (line 8104) | def de_json(cls, json_string):
method __init__ (line 8109) | def __init__(self, is_anonymous: bool, can_manage_chat: bool,
method to_dict (line 8138) | def to_dict(self):
method to_json (line 8170) | def to_json(self):
class InputFile (line 8175) | class InputFile:
method __init__ (line 8212) | def __init__(self, file: Union[str, IOBase, Path], file_name: Optional...
method _resolve_file (line 8219) | def _resolve_file(file):
method file (line 8232) | def file(self) -> Union[IOBase, str]:
method file_name (line 8239) | def file_name(self) -> str:
class ForumTopicCreated (line 8246) | class ForumTopicCreated(JsonDeserializable):
method de_json (line 8268) | def de_json(cls, json_string):
method __init__ (line 8273) | def __init__(self, name: str, icon_color: int, icon_custom_emoji_id: O...
class ForumTopicClosed (line 8280) | class ForumTopicClosed(JsonDeserializable):
method de_json (line 8288) | def de_json(cls, json_string):
method __init__ (line 8291) | def __init__(self) -> None:
class ForumTopicReopened (line 8295) | class ForumTopicReopened(JsonDeserializable):
method de_json (line 8303) | def de_json(cls, json_string):
method __init__ (line 8306) | def __init__(self) -> None:
class ForumTopicEdited (line 8309) | class ForumTopicEdited(JsonDeserializable):
method de_json (line 8323) | def de_json(cls, json_string):
method __init__ (line 8328) | def __init__(self, name: Optional[str]=None, icon_custom_emoji_id: Opt...
class GeneralForumTopicHidden (line 8333) | class GeneralForumTopicHidden(JsonDeserializable):
method de_json (line 8341) | def de_json(cls, json_string):
method __init__ (line 8344) | def __init__(self) -> None:
class GeneralForumTopicUnhidden (line 8348) | class GeneralForumTopicUnhidden(JsonDeserializable):
method de_json (line 8357) | def de_json(cls, json_string):
method __init__ (line 8360) | def __init__(self) -> None:
class ForumTopic (line 8365) | class ForumTopic(JsonDeserializable):
method de_json (line 8391) | def de_json(cls, json_string):
method __init__ (line 8396) | def __init__(self, message_thread_id: int, name: str, icon_color: int,...
class WriteAccessAllowed (line 8405) | class WriteAccessAllowed(JsonDeserializable):
method de_json (line 8424) | def de_json(cls, json_string):
method __init__ (line 8430) | def __init__(self, from_request: Optional[bool]=None, web_app_name: Op...
class ChatShared (line 8437) | class ChatShared(JsonDeserializable):
method de_json (line 8467) | def de_json(cls, json_string):
method __init__ (line 8472) | def __init__(self, request_id: int, chat_id: int, title: Optional[str]...
class BotDescription (line 8481) | class BotDescription(JsonDeserializable):
method de_json (line 8495) | def de_json(cls, json_string):
method __init__ (line 8500) | def __init__(self, description: str, **kwargs) -> None:
class BotShortDescription (line 8504) | class BotShortDescription(JsonDeserializable):
method de_json (line 8518) | def de_json(cls, json_string):
method __init__ (line 8523) | def __init__(self, short_description: str, **kwargs) -> None:
class InputSticker (line 8528) | class InputSticker(Dictionar
Condensed preview — 206 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4,018K chars).
[
{
"path": ".github/ISSUE_TEMPLATE",
"chars": 189,
"preview": "Please answer these questions before submitting your issue. Thanks!\n\n1. What version of pyTelegramBotAPI are you using?\n"
},
{
"path": ".github/PULL_REQUEST_TEMPLATE.md",
"chars": 305,
"preview": "## Description\nInclude changes, new features and etc:\n\n## Describe your tests\nHow did you test your change?\n\nPython vers"
},
{
"path": ".github/workflows/setup_python.yml",
"chars": 1039,
"preview": "# This is a basic workflow to help you get started with Actions\n\nname: Setup\n\n# Controls when the action will run. \non:\n"
},
{
"path": ".gitignore",
"chars": 806,
"preview": "# Byte-compiled / optimized / DLL files\n__pycache__/\n*.py[cod]\n\n# C extensions\n*.so\n\n# Distribution / packaging\n.Python\n"
},
{
"path": ".readthedocs.yml",
"chars": 736,
"preview": "# Read the Docs configuration file for Sphinx projects\n# See https://docs.readthedocs.io/en/stable/config-file/v2.html f"
},
{
"path": ".travis.yml",
"chars": 211,
"preview": "language: python\npython:\n - \"3.10\"\n - \"3.11\"\n - \"3.12\"\n - \"3.13\"\n - \"3.14\"\n - \"pypy3\"\ninstall: \"pip in"
},
{
"path": "LICENSE",
"chars": 18047,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 2, June 1991\n\n Copyright (C) 1989, 1991 Fr"
},
{
"path": "README.md",
"chars": 46670,
"preview": "\n[](https://pypi.python.org/pypi/pyTelegramBo"
},
{
"path": "doc_req.txt",
"chars": 98,
"preview": "-r requirements.txt\n\nfuro\nsphinx_copybutton\ngit+https://github.com/eternnoir/pyTelegramBotAPI.git\n"
},
{
"path": "docs/Makefile",
"chars": 638,
"preview": "# Minimal makefile for Sphinx documentation\n#\n\n# You can set these variables from the command line, and also\n# from the "
},
{
"path": "docs/source/async_version/index.rst",
"chars": 747,
"preview": "====================\nAsyncTeleBot\n====================\n\n\n.. meta::\n :description: Asynchronous pyTelegramBotAPI\n :ke"
},
{
"path": "docs/source/calldata.rst",
"chars": 376,
"preview": "\n=====================\nCallback data factory\n=====================\n\n.. meta::\n :description: Callback data factory in "
},
{
"path": "docs/source/conf.py",
"chars": 2426,
"preview": "# Configuration file for the Sphinx documentation builder.\r\n#\r\n# This file only contains a selection of the most common "
},
{
"path": "docs/source/formatting.rst",
"chars": 298,
"preview": "==================\nFormatting options\n==================\n\n.. meta::\n :description: Formatting options in pyTelegramBot"
},
{
"path": "docs/source/index.rst",
"chars": 1371,
"preview": ".. pyTelegramBotAPI documentation master file, created by\n sphinx-quickstart on Fri Feb 18 20:58:37 2022.\n You can a"
},
{
"path": "docs/source/install.rst",
"chars": 940,
"preview": "==================\nInstallation Guide\n==================\n\n.. meta::\n :description: Installation of pyTelegramBotAPI\n "
},
{
"path": "docs/source/locales/en/LC_MESSAGES/async_version.po",
"chars": 215690,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/calldata.po",
"chars": 3305,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/formatting.po",
"chars": 8031,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/index.po",
"chars": 2424,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/install.po",
"chars": 1377,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/quick_start.po",
"chars": 976,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/sync_version.po",
"chars": 193937,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/types.po",
"chars": 226721,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/en/LC_MESSAGES/util.po",
"chars": 9831,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/async_version.po",
"chars": 296404,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/calldata.po",
"chars": 4142,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/formatting.po",
"chars": 9578,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/index.po",
"chars": 3192,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/install.po",
"chars": 1681,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/quick_start.po",
"chars": 1096,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/sync_version.po",
"chars": 280613,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/types.po",
"chars": 226721,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/locales/ru/LC_MESSAGES/util.po",
"chars": 13462,
"preview": "# SOME DESCRIPTIVE TITLE.\n# Copyright (C) 2022, coder2020official\n# This file is distributed under the same license as t"
},
{
"path": "docs/source/quick_start.rst",
"chars": 390,
"preview": "\n===========\nQuick start\n===========\n\n.. meta::\n :description: Quickstart guide\n :keywords: ptba, pytba, pyTelegramB"
},
{
"path": "docs/source/sync_version/index.rst",
"chars": 737,
"preview": "===============\nTeleBot version\n===============\n\n.. meta::\n :description: Synchronous pyTelegramBotAPI documentation\n "
},
{
"path": "docs/source/types.rst",
"chars": 126,
"preview": "============\nTypes of API\n============\n\n\n\n.. automodule:: telebot.types\n :members:\n :undoc-members:\n :show-inherit"
},
{
"path": "docs/source/util.rst",
"chars": 259,
"preview": "============\nUtils\n============\n\n.. meta::\n :description: Utils in pyTelegramBotAPI\n :keywords: ptba, pytba, pyTeleg"
},
{
"path": "examples/anonymous_bot.py",
"chars": 4581,
"preview": "# This bot is needed to connect two people and their subsequent anonymous communication\n#\n# Avaiable commands:\n# `/start"
},
{
"path": "examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/filters.py",
"chars": 893,
"preview": "from telebot import types\nfrom telebot.async_telebot import AsyncTeleBot\nfrom telebot.asyncio_filters import AdvancedCus"
},
{
"path": "examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/keyboards.py",
"chars": 2760,
"preview": "import calendar\nfrom datetime import date, timedelta\n\nfrom filters import calendar_factory, calendar_zoom\nfrom telebot.t"
},
{
"path": "examples/asynchronous_telebot/callback_data_examples/advanced_calendar_example/main.py",
"chars": 2224,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you an advanced usage of CallbackData.\nIn this example calendar was i"
},
{
"path": "examples/asynchronous_telebot/callback_data_examples/simple_products_example.py",
"chars": 2829,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you how to use CallbackData\n\"\"\"\n\nfrom telebot.callback_data import Ca"
},
{
"path": "examples/asynchronous_telebot/chat_join_request.py",
"chars": 377,
"preview": "from telebot.async_telebot import AsyncTeleBot\n\nimport telebot\nbot = AsyncTeleBot('TOKEN')\n\n@bot.chat_join_request_handl"
},
{
"path": "examples/asynchronous_telebot/chat_member_example.py",
"chars": 2011,
"preview": "from telebot import types,util\nfrom telebot.async_telebot import AsyncTeleBot\n\nbot = AsyncTeleBot('TOKEN')\n\n#chat_member"
},
{
"path": "examples/asynchronous_telebot/continue_handling.py",
"chars": 960,
"preview": "from telebot.async_telebot import AsyncTeleBot\nfrom telebot.asyncio_handler_backends import ContinueHandling\n\n\nbot = Asy"
},
{
"path": "examples/asynchronous_telebot/custom_filters/admin_filter_example.py",
"chars": 408,
"preview": "from telebot.async_telebot import AsyncTeleBot\nfrom telebot import asyncio_filters\nbot = AsyncTeleBot('TOKEN')\n\n# Handle"
},
{
"path": "examples/asynchronous_telebot/custom_filters/advanced_text_filter.py",
"chars": 5160,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you usage of TextFilter\nIn this example you will see how to use TextF"
},
{
"path": "examples/asynchronous_telebot/custom_filters/general_custom_filters.py",
"chars": 1471,
"preview": "from telebot.async_telebot import AsyncTeleBot\nimport telebot\nbot = AsyncTeleBot('TOKEN')\n\n\n# AdvancedCustomFilter is fo"
},
{
"path": "examples/asynchronous_telebot/custom_filters/id_filter_example.py",
"chars": 651,
"preview": "from telebot.async_telebot import AsyncTeleBot\nimport telebot\nbot = AsyncTeleBot('TOKEN')\n\n\n# Chat id can be private or "
},
{
"path": "examples/asynchronous_telebot/custom_filters/is_filter_example.py",
"chars": 673,
"preview": "from telebot.async_telebot import AsyncTeleBot\nimport telebot\n\nbot = AsyncTeleBot('TOKEN')\n\n\n\n# Check if message is a re"
},
{
"path": "examples/asynchronous_telebot/custom_filters/text_filter_example.py",
"chars": 721,
"preview": "from telebot.async_telebot import AsyncTeleBot\nimport telebot\nbot = AsyncTeleBot('TOKEN')\n\n\n# Check if message starts wi"
},
{
"path": "examples/asynchronous_telebot/custom_states.py",
"chars": 5441,
"preview": "from telebot import async_telebot, asyncio_filters, types\nfrom telebot.asyncio_storage import StateMemoryStorage\nfrom te"
},
{
"path": "examples/asynchronous_telebot/detect_changes.py",
"chars": 800,
"preview": "#!/usr/bin/python\n\n# This is a simple echo bot using the decorator mechanism.\n# It echoes any incoming text messages.\n\nf"
},
{
"path": "examples/asynchronous_telebot/download_file_example.py",
"chars": 729,
"preview": "\nimport telebot\nfrom telebot.async_telebot import AsyncTeleBot\n\n\n\nbot = AsyncTeleBot('TOKEN')\n\n\n@bot.message_handler(con"
},
{
"path": "examples/asynchronous_telebot/echo_bot.py",
"chars": 688,
"preview": "#!/usr/bin/python\n\n# This is a simple echo bot using the decorator mechanism.\n# It echoes any incoming text messages.\nim"
},
{
"path": "examples/asynchronous_telebot/exception_handler.py",
"chars": 702,
"preview": "import logging\n\nimport telebot\nfrom telebot.async_telebot import AsyncTeleBot, ExceptionHandler\n\nlogger = telebot.logger"
},
{
"path": "examples/asynchronous_telebot/formatting_example.py",
"chars": 2227,
"preview": "from telebot.async_telebot import AsyncTeleBot\nfrom telebot import formatting, types\n\nbot = AsyncTeleBot('token')\n\n\n@bot"
},
{
"path": "examples/asynchronous_telebot/message_reaction_example.py",
"chars": 1752,
"preview": "#!/usr/bin/python3\n\n# This is a simple bot using message reactions (emoji)\n# https://core.telegram.org/bots/api#reaction"
},
{
"path": "examples/asynchronous_telebot/middleware/flooding_middleware.py",
"chars": 1288,
"preview": "# Just a little example of middleware handlers\n\nfrom telebot.asyncio_handler_backends import BaseMiddleware, CancelUpdat"
},
{
"path": "examples/asynchronous_telebot/middleware/i18n.py",
"chars": 1501,
"preview": "#!/usr/bin/python\n\n# This example shows how to implement i18n (internationalization) l10n (localization) to create\n# mul"
},
{
"path": "examples/asynchronous_telebot/middleware/i18n_middleware_example/i18n_base_midddleware.py",
"chars": 3751,
"preview": "import contextvars\nimport gettext\nimport os\n\nfrom telebot.asyncio_handler_backends import BaseMiddleware\n\ntry:\n from "
},
{
"path": "examples/asynchronous_telebot/middleware/i18n_middleware_example/keyboards.py",
"chars": 927,
"preview": "from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton, ReplyKeyboardMarkup, KeyboardButton\n\n\ndef language"
},
{
"path": "examples/asynchronous_telebot/middleware/i18n_middleware_example/locales/en/LC_MESSAGES/messages.po",
"chars": 1722,
"preview": "# English translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same license "
},
{
"path": "examples/asynchronous_telebot/middleware/i18n_middleware_example/locales/ru/LC_MESSAGES/messages.po",
"chars": 1997,
"preview": "# Russian translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same license "
},
{
"path": "examples/asynchronous_telebot/middleware/i18n_middleware_example/locales/uz_Latn/LC_MESSAGES/messages.po",
"chars": 1894,
"preview": "# Uzbek (Latin) translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same li"
},
{
"path": "examples/asynchronous_telebot/middleware/i18n_middleware_example/main.py",
"chars": 8447,
"preview": "\"\"\"\nIn this example you will learn how to adapt your bot to different languages\nUsing built-in middleware I18N.\n\nYou nee"
},
{
"path": "examples/asynchronous_telebot/mini_app.py",
"chars": 1271,
"preview": "# The source of the \"https://pytelegrambotminiapp.vercel.app\" can be found in https://github.com/eternnoir/pyTelegramBot"
},
{
"path": "examples/asynchronous_telebot/multibot/README.MD",
"chars": 905,
"preview": "You probably have seen bots which allow you to send them token of your bot and then handle updates providing some functi"
},
{
"path": "examples/asynchronous_telebot/multibot/config.py",
"chars": 150,
"preview": "MAIN_BOT_TOKEN = \"your_main_bot_token\"\n\nWEBHOOK_HOST = \"your_domain.com\"\nWEBHOOK_PATH = \"telegram_webhook\"\nWEBAPP_HOST ="
},
{
"path": "examples/asynchronous_telebot/multibot/handlers.py",
"chars": 538,
"preview": "from telebot.async_telebot import AsyncTeleBot\nfrom telebot import types\n\n\nasync def hello_handler(message: types.Messag"
},
{
"path": "examples/asynchronous_telebot/multibot/main.py",
"chars": 1646,
"preview": "import asyncio\n\nfrom aiohttp import web\nfrom telebot import types, util\nfrom telebot.async_telebot import AsyncTeleBot\nf"
},
{
"path": "examples/asynchronous_telebot/multibot/nginx_conf.conf",
"chars": 127,
"preview": "server {\n server_name your_domain.com;\n\n location /telegram_webhook/ {\n proxy_pass http://localhost:3500;\n "
},
{
"path": "examples/asynchronous_telebot/register_handler.py",
"chars": 653,
"preview": "from telebot.async_telebot import AsyncTeleBot\nbot = AsyncTeleBot('TOKEN')\n\nasync def start_executor(message):\n await"
},
{
"path": "examples/asynchronous_telebot/send_file_example.py",
"chars": 867,
"preview": "\nimport telebot\nfrom telebot.async_telebot import AsyncTeleBot\n\n\n\nbot = AsyncTeleBot('TOKEN')\n\n\n@bot.message_handler(com"
},
{
"path": "examples/asynchronous_telebot/send_message_draft_example.py",
"chars": 635,
"preview": "import asyncio\n\nfrom telebot.async_telebot import AsyncTeleBot\n\nbot = AsyncTeleBot(\"TOKEN\")\n\n\n@bot.message_handler(comma"
},
{
"path": "examples/asynchronous_telebot/set_command_example.py",
"chars": 1152,
"preview": "#!/usr/bin/python\n\n# This is a set_my_commands example.\n# Press on [/] button in telegram client.\n# Important, to update"
},
{
"path": "examples/asynchronous_telebot/skip_updates_example.py",
"chars": 417,
"preview": "from telebot.async_telebot import AsyncTeleBot\n\nbot = AsyncTeleBot('TOKEN')\n\n@bot.message_handler(commands=['start', 'he"
},
{
"path": "examples/asynchronous_telebot/timer_bot_async.py",
"chars": 1349,
"preview": "#!/usr/bin/python3\n\n# This is a simple bot with schedule timer \n# https://github.com/ibrb/python-aioschedule\n# https://s"
},
{
"path": "examples/asynchronous_telebot/update_listener.py",
"chars": 412,
"preview": "from telebot.async_telebot import AsyncTeleBot\n\n# Update listeners are functions that are called when any update is rece"
},
{
"path": "examples/asynchronous_telebot/webhooks/async_webhook_aiohttp_echo_bot.py",
"chars": 3065,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This is an async echo bot using decorators and webhook with aiohttp\n# I"
},
{
"path": "examples/asynchronous_telebot/webhooks/run_webhooks.py",
"chars": 1440,
"preview": "#!/usr/bin/python\n\n# This is a simple echo bot using the decorator mechanism.\n# It echoes any incoming text messages.\n# "
},
{
"path": "examples/asynchronous_telebot/webhooks/webhook_starlette_echo_bot.py",
"chars": 2616,
"preview": "#!/usr/bin/env python\n\"\"\"\nAsynchronous Telegram Echo Bot example.\n\nThis is a simple bot that echoes each message that is"
},
{
"path": "examples/callback_data_examples/advanced_calendar_example/filters.py",
"chars": 817,
"preview": "import telebot\nfrom telebot import types, AdvancedCustomFilter\nfrom telebot.callback_data import CallbackData, CallbackD"
},
{
"path": "examples/callback_data_examples/advanced_calendar_example/keyboards.py",
"chars": 2818,
"preview": "import calendar\nfrom datetime import date, timedelta\n\nfrom examples.callback_data_examples.advanced_calendar_example.fil"
},
{
"path": "examples/callback_data_examples/advanced_calendar_example/main.py",
"chars": 2107,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you an advanced usage of CallbackData.\nIn this example calendar was i"
},
{
"path": "examples/callback_data_examples/simple_products_example.py",
"chars": 2707,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you how to use CallbackData\n\"\"\"\n\nfrom telebot.callback_data import Ca"
},
{
"path": "examples/chat_join_request.py",
"chars": 338,
"preview": "import telebot\n\n\nbot = telebot.TeleBot('TOKEN')\n\n@bot.chat_join_request_handler()\ndef make_some(message: telebot.types.C"
},
{
"path": "examples/chat_member_example.py",
"chars": 1896,
"preview": "import telebot\nfrom telebot import types,util\n\nbot = telebot.TeleBot(\"token\")\n\n#chat_member_handler. When status changes"
},
{
"path": "examples/continue_handling.py",
"chars": 696,
"preview": "from telebot import TeleBot\nfrom telebot.handler_backends import ContinueHandling\n\n\nbot = TeleBot('TOKEN')\n\n@bot.message"
},
{
"path": "examples/create_invite_link.py",
"chars": 1509,
"preview": "import telebot\nfrom time import sleep, time\nfrom telebot.types import InlineKeyboardMarkup, InlineKeyboardButton #Only f"
},
{
"path": "examples/custom_filters/admin_filter_example.py",
"chars": 345,
"preview": "import telebot\nfrom telebot import custom_filters\nbot = telebot.TeleBot('TOKEN')\n\n# Handler\n@bot.message_handler(chat_ty"
},
{
"path": "examples/custom_filters/advanced_text_filter.py",
"chars": 4881,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you usage of TextFilter\nIn this example you will see how to use TextF"
},
{
"path": "examples/custom_filters/general_custom_filters.py",
"chars": 1353,
"preview": "import telebot\n\nbot = telebot.TeleBot('TOKEN')\n\n\n# AdvancedCustomFilter is for list, string filter values\nclass MainFilt"
},
{
"path": "examples/custom_filters/id_filter_example.py",
"chars": 592,
"preview": "import telebot\nfrom telebot import custom_filters\n\nbot = telebot.TeleBot('token')\n\n\n# Chat id can be private or supergro"
},
{
"path": "examples/custom_filters/is_filter_example.py",
"chars": 602,
"preview": "import telebot\nfrom telebot import custom_filters\n\nbot = telebot.TeleBot('TOKEN')\n\n\n# Check if message is a reply\n@bot.m"
},
{
"path": "examples/custom_filters/text_filter_example.py",
"chars": 652,
"preview": "import telebot\nfrom telebot import custom_filters\n\nbot = telebot.TeleBot('TOKEN')\n\n\n# Check if message starts with @admi"
},
{
"path": "examples/custom_states.py",
"chars": 5244,
"preview": "import telebot\nfrom telebot import custom_filters, types\nfrom telebot.states import State, StatesGroup\nfrom telebot.stat"
},
{
"path": "examples/deep_linking.py",
"chars": 2980,
"preview": "#!/usr/bin/python\n\n# This example shows how to implement deep linking (https://core.telegram.org/bots#deep-linking)\n# wi"
},
{
"path": "examples/detailed_example/detailed_example.py",
"chars": 4852,
"preview": "\"\"\"\nThis is a detailed example using almost every command of the API\n\"\"\"\n\nimport time\n\nimport telebot\nfrom telebot impor"
},
{
"path": "examples/detect_changes.py",
"chars": 756,
"preview": "#!/usr/bin/python\n\n# This is a simple echo bot using the decorator mechanism.\n# It echoes any incoming text messages.\n\ni"
},
{
"path": "examples/download_file_example.py",
"chars": 362,
"preview": "import telebot\n\nTOKEN = 'YOUR BOT TOKEN'\nCHAT_ID = 'YOUR CHAT ID'\n\nbot = telebot.TeleBot(TOKEN)\n\nret_msg = bot.send_voic"
},
{
"path": "examples/echo_bot.py",
"chars": 708,
"preview": "#!/usr/bin/python\n\n# This is a simple echo bot using the decorator mechanism.\n# It echoes any incoming text messages.\n\ni"
},
{
"path": "examples/formatting_example.py",
"chars": 2148,
"preview": "from telebot import TeleBot\nfrom telebot import formatting, types\n\nbot = TeleBot('TOKEN')\n\n\n@bot.message_handler(command"
},
{
"path": "examples/inline_example.py",
"chars": 2880,
"preview": "# This example show how to write an inline mode telegram bot use pyTelegramBotAPI.\nimport logging\nimport sys\nimport time"
},
{
"path": "examples/inline_keyboard_example.py",
"chars": 912,
"preview": "# This example show how to use inline keyboards and process button presses\nimport telebot\nfrom telebot.types import Inli"
},
{
"path": "examples/message_reaction_example.py",
"chars": 1670,
"preview": "#!/usr/bin/python3\n\n# This is a simple bot using message reactions (emoji)\n# https://core.telegram.org/bots/api#reaction"
},
{
"path": "examples/middleware/README.md",
"chars": 1524,
"preview": "# Middlewares\n\n## Type of middlewares in pyTelegramBotAPI\nCurrently, synchronous version of pyTelegramBotAPI has two typ"
},
{
"path": "examples/middleware/class_based/antiflood_middleware.py",
"chars": 1378,
"preview": "# Just a little example of middleware handlers\n\nfrom telebot.handler_backends import BaseMiddleware\nfrom telebot import "
},
{
"path": "examples/middleware/class_based/basic_example.py",
"chars": 1266,
"preview": "from telebot import TeleBot\nfrom telebot.handler_backends import BaseMiddleware\n\nbot = TeleBot('TOKEN', use_class_middle"
},
{
"path": "examples/middleware/class_based/i18n_middleware/i18n_base_middleware.py",
"chars": 3699,
"preview": "import gettext\nimport os\nimport threading\n\nfrom telebot.handler_backends import BaseMiddleware\n\ntry:\n from babel.supp"
},
{
"path": "examples/middleware/class_based/i18n_middleware/keyboards.py",
"chars": 927,
"preview": "from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton, ReplyKeyboardMarkup, KeyboardButton\n\n\ndef language"
},
{
"path": "examples/middleware/class_based/i18n_middleware/locales/en/LC_MESSAGES/messages.po",
"chars": 1722,
"preview": "# English translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same license "
},
{
"path": "examples/middleware/class_based/i18n_middleware/locales/ru/LC_MESSAGES/messages.po",
"chars": 1997,
"preview": "# Russian translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same license "
},
{
"path": "examples/middleware/class_based/i18n_middleware/locales/uz_Latn/LC_MESSAGES/messages.po",
"chars": 1894,
"preview": "# Uzbek (Latin) translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same li"
},
{
"path": "examples/middleware/class_based/i18n_middleware/main.py",
"chars": 8268,
"preview": "\"\"\"\nIn this example you will learn how to adapt your bot to different languages\nUsing built-in middleware I18N.\n\nYou nee"
},
{
"path": "examples/middleware/function_based/i18n.py",
"chars": 1416,
"preview": "#!/usr/bin/python\n\n# This example shows how to implement i18n (internationalization) l10n (localization) to create\n# mul"
},
{
"path": "examples/middleware/function_based/i18n_gettext/i18n_class.py",
"chars": 2142,
"preview": "import gettext\nimport os\nimport threading\n\n\nclass I18N:\n \"\"\"\n This class provides high-level tool for internationa"
},
{
"path": "examples/middleware/function_based/i18n_gettext/keyboards.py",
"chars": 622,
"preview": "from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton\n\n\ndef languages_keyboard():\n return InlineKeyboa"
},
{
"path": "examples/middleware/function_based/i18n_gettext/locales/en/LC_MESSAGES/messages.po",
"chars": 1140,
"preview": "# English translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same license "
},
{
"path": "examples/middleware/function_based/i18n_gettext/locales/ru/LC_MESSAGES/messages.po",
"chars": 1473,
"preview": "# Russian translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same license "
},
{
"path": "examples/middleware/function_based/i18n_gettext/locales/uz_Latn/LC_MESSAGES/messages.po",
"chars": 1384,
"preview": "# Uzbek (Latin) translations for PROJECT.\n# Copyright (C) 2022 ORGANIZATION\n# This file is distributed under the same li"
},
{
"path": "examples/middleware/function_based/i18n_gettext/main.py",
"chars": 5792,
"preview": "\"\"\"\nIn this example you will learn how to adapt your bot to different languages\nUsing built-in class I18N.\nYou need to i"
},
{
"path": "examples/middleware/function_based/session.py",
"chars": 1877,
"preview": "#!/usr/bin/python\n\n# This example shows how to implement session creation and retrieval based on user id with middleware"
},
{
"path": "examples/mini_app.py",
"chars": 1198,
"preview": "# The source of the \"https://pytelegrambotminiapp.vercel.app\" can be found in https://github.com/eternnoir/pyTelegramBot"
},
{
"path": "examples/mini_app_web/index.html",
"chars": 8545,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-wid"
},
{
"path": "examples/mini_app_web/script.js",
"chars": 12170,
"preview": "const telegram = Telegram.WebApp;\ntelegram.ready();\n\nclass ModifyStyle{ \n constructor(element) {\n this.element = ele"
},
{
"path": "examples/mini_app_web/style.css",
"chars": 5792,
"preview": ":root {\n --red-color: #ba4d47;\n --yellow-color: #bab05b;\n}\n\n.body {\n background-color: (--tg-theme-secondary-bg-color"
},
{
"path": "examples/multibot/README.MD",
"chars": 905,
"preview": "You probably have seen bots which allow you to send them token of your bot and then handle updates providing some functi"
},
{
"path": "examples/multibot/config.py",
"chars": 150,
"preview": "MAIN_BOT_TOKEN = \"your_main_bot_token\"\n\nWEBHOOK_HOST = \"your_domain.com\"\nWEBHOOK_PATH = \"telegram_webhook\"\nWEBAPP_HOST ="
},
{
"path": "examples/multibot/handlers.py",
"chars": 461,
"preview": "from telebot import types, TeleBot\n\n\ndef hello_handler(message: types.Message, bot: TeleBot):\n bot.send_message(messa"
},
{
"path": "examples/multibot/main.py",
"chars": 1416,
"preview": "from flask import Flask\nfrom flask import request, abort\nfrom telebot import TeleBot, types, util\nfrom handlers import r"
},
{
"path": "examples/multibot/nginx_conf.conf",
"chars": 127,
"preview": "server {\n server_name your_domain.com;\n\n location /telegram_webhook/ {\n proxy_pass http://localhost:3500;\n "
},
{
"path": "examples/payments_example.py",
"chars": 4238,
"preview": "import telebot\nfrom telebot.types import LabeledPrice, ShippingOption\n\ntoken = '1234567890:AAAABBBBCCCCDDDDeeeeFFFFgggGH"
},
{
"path": "examples/poll_example.py",
"chars": 690,
"preview": "#!/usr/bin/python\n\n# This is an example file to create quiz polls\nimport telebot\n\nAPI_TOKEN = \"<api_token>\"\n\nbot = teleb"
},
{
"path": "examples/register_handler.py",
"chars": 616,
"preview": "import telebot\n\napi_token = 'token'\n\nbot = telebot.TeleBot(api_token)\n\ndef start_executor(message):\n bot.send_message"
},
{
"path": "examples/reply_keyboard_markup_example.py",
"chars": 2946,
"preview": "# This example shows you how to create a custom QWERTY keyboard using reply keyboard markup\nimport telebot\nfrom telebot."
},
{
"path": "examples/send_message_draft_example.py",
"chars": 551,
"preview": "import time\n\nimport telebot\n\nbot = telebot.TeleBot(\"TOKEN\")\n\n\n@bot.message_handler(commands=['draft'])\ndef send_draft(me"
},
{
"path": "examples/serverless/aws_lambda_function.py",
"chars": 1253,
"preview": "\"\"\"\nExample of running PyTelegramBotAPI serverless in Amazon AWS Lambdaю\nYou have to set your lambda's url as telegram w"
},
{
"path": "examples/serverless/azure_functions",
"chars": 1836,
"preview": "# Using Azure Functions for serverless bots.\n# (Thanks to twitter.com/masyan for the idea)\n\n# By default the Azure Funct"
},
{
"path": "examples/serverless/flask_google_cloud_bot/.gcloudignore",
"chars": 4,
"preview": "env/"
},
{
"path": "examples/serverless/flask_google_cloud_bot/app.yaml",
"chars": 74,
"preview": "runtime: python38\n\nenv_variables:\n BUCKET_NAME: \"your-google-application\""
},
{
"path": "examples/serverless/flask_google_cloud_bot/main.py",
"chars": 1410,
"preview": "'''\nSimple bot for Google cloud deployment.\n\nDocs:\nhttps://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy"
},
{
"path": "examples/serverless/flask_google_cloud_bot/requirements.txt",
"chars": 71,
"preview": "pyTelegramBotAPI==4.11.0\nFlask==3.1.3\ngunicorn==23.0.0\nWerkzeug==3.1.6\n"
},
{
"path": "examples/set_command_example.py",
"chars": 969,
"preview": "#!/usr/bin/python\n\n# This is a set_my_commands example.\n# Press on [/] button in telegram client.\n# Important, to update"
},
{
"path": "examples/skip_updates_example.py",
"chars": 358,
"preview": "import telebot\n\nbot = telebot.TeleBot(\"TOKEN\")\n\n@bot.message_handler(commands=['start', 'help'])\ndef send_welcome(messag"
},
{
"path": "examples/stars_payment.py",
"chars": 2626,
"preview": "# Import required libraries\nimport telebot \nfrom telebot import types \n\nbot = telebot.TeleBot('TOKEN')\n\n# Product price"
},
{
"path": "examples/step_example.py",
"chars": 2545,
"preview": "# -*- coding: utf-8 -*-\n\"\"\"\nThis Example will show you how to use register_next_step handler.\n\"\"\"\n\nimport telebot\nfrom t"
},
{
"path": "examples/telebot_bot/telebot_bot.py",
"chars": 3032,
"preview": "# -*- coding: utf-8 -*-\n# This bot was made specifically for the pyTelegramAPI Telegram chat,\n# and goes by the name 'Te"
},
{
"path": "examples/timer_bot.py",
"chars": 1080,
"preview": "#!/usr/bin/python\n\n# This is a simple bot with schedule timer\n# https://schedule.readthedocs.io\n\nimport time, threading,"
},
{
"path": "examples/webhook_examples/README.md",
"chars": 2221,
"preview": "# Webhook examples using pyTelegramBotAPI\n\nThere are 5 examples in this directory using different libraries:\n\n* **Python"
},
{
"path": "examples/webhook_examples/run_webhooks.py",
"chars": 1354,
"preview": "#!/usr/bin/python\n\n# This is a simple echo bot using the decorator mechanism.\n# It echoes any incoming text messages.\n# "
},
{
"path": "examples/webhook_examples/webhook_aiohttp_echo_bot.py",
"chars": 2450,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This is a simple echo bot using decorators and webhook with aiohttp\n# I"
},
{
"path": "examples/webhook_examples/webhook_cherrypy_echo_bot.py",
"chars": 2904,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This is a simple echo bot using decorators and webhook with CherryPy\n# "
},
{
"path": "examples/webhook_examples/webhook_cpython_echo_bot.py",
"chars": 3287,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This is a simple echo bot using decorators and webhook with BaseHTTPSer"
},
{
"path": "examples/webhook_examples/webhook_fastapi_echo_bot.py",
"chars": 2220,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This is a simple echo bot using decorators and webhook with fastapi\n# I"
},
{
"path": "examples/webhook_examples/webhook_flask_echo_bot.py",
"chars": 2475,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This is a simple echo bot using decorators and webhook with flask\n# It "
},
{
"path": "examples/webhook_examples/webhook_flask_heroku_echo.py",
"chars": 927,
"preview": "import os\r\n\r\nfrom flask import Flask, request\r\n\r\nimport telebot\r\n\r\nTOKEN = '<api_token>'\r\nbot = telebot.TeleBot(TOKEN)\r\n"
},
{
"path": "examples/webhook_examples/webhook_tornado_echo_bot.py",
"chars": 3182,
"preview": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# This example shows webhook echo bot with Tornado web framework\n# Docume"
},
{
"path": "examples/webhook_examples/webhook_twisted_echo_bot.py",
"chars": 2656,
"preview": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n# This is an example echo bot using webhook with Twisted network framewo"
},
{
"path": "pyproject.toml",
"chars": 1390,
"preview": "[build-system]\r\nrequires = [\"hatchling\"]\r\nbuild-backend = \"hatchling.build\"\r\n\r\n[project]\r\nname = \"pyTelegramBotAPI\"\r\nver"
},
{
"path": "requirements.txt",
"chars": 54,
"preview": "pytest\nrequests==2.32.4\nwheel==0.46.2\naiohttp==3.13.3\n"
},
{
"path": "telebot/__init__.py",
"chars": 499095,
"preview": "# -*- coding: utf-8 -*-\nfrom datetime import datetime\n\nimport logging\nimport re\nimport sys\nimport threading\nimport time\n"
},
{
"path": "telebot/apihelper.py",
"chars": 124056,
"preview": "# -*- coding: utf-8 -*-\nimport time\nfrom datetime import datetime\n\ntry:\n # noinspection PyPackageRequirements\n imp"
},
{
"path": "telebot/async_telebot.py",
"chars": 472664,
"preview": "# -*- coding: utf-8 -*-\nfrom datetime import datetime\n\nimport logging\nimport re\nimport traceback\nfrom typing import Any,"
},
{
"path": "telebot/asyncio_filters.py",
"chars": 12857,
"preview": "from abc import ABC\nfrom typing import Optional, Union\nfrom telebot.asyncio_handler_backends import State\n\nfrom telebot "
},
{
"path": "telebot/asyncio_handler_backends.py",
"chars": 2785,
"preview": "\"\"\"\nFile with all middleware classes, states.\n\"\"\"\nfrom telebot.states import State, StatesGroup\n\n\nclass BaseMiddleware:\n"
},
{
"path": "telebot/asyncio_helper.py",
"chars": 125371,
"preview": "import asyncio # for future uses\nimport ssl\nimport aiohttp\nimport certifi\nfrom telebot import types\n\ntry:\n import ujs"
},
{
"path": "telebot/asyncio_storage/__init__.py",
"chars": 433,
"preview": "from telebot.asyncio_storage.memory_storage import StateMemoryStorage\nfrom telebot.asyncio_storage.redis_storage import "
},
{
"path": "telebot/asyncio_storage/base_storage.py",
"chars": 3819,
"preview": "import copy\n\n\nclass StateStorageBase:\n def __init__(self) -> None:\n pass\n\n async def set_data(self, chat_id"
},
{
"path": "telebot/asyncio_storage/memory_storage.py",
"chars": 5849,
"preview": "from telebot.asyncio_storage.base_storage import StateStorageBase, StateDataContext\nfrom typing import Optional, Union\n\n"
},
{
"path": "telebot/asyncio_storage/pickle_storage.py",
"chars": 7662,
"preview": "aiofiles_installed = True\ntry:\n import aiofiles\nexcept ImportError:\n aiofiles_installed = False\n\nimport os\nimport "
},
{
"path": "telebot/asyncio_storage/redis_storage.py",
"chars": 9897,
"preview": "redis_installed = True\ntry:\n import redis\n from redis.asyncio import Redis, ConnectionPool\nexcept ImportError:\n "
},
{
"path": "telebot/callback_data.py",
"chars": 5203,
"preview": "\"\"\"\nCallback data factory's file.\n\"\"\"\n\n\"\"\"\nCopyright (c) 2017-2018 Alex Root Junior\n\nPermission is hereby granted, free "
},
{
"path": "telebot/custom_filters.py",
"chars": 12975,
"preview": "from abc import ABC\nfrom typing import Optional, Union\nfrom telebot.handler_backends import State\n\nfrom telebot import t"
},
{
"path": "telebot/ext/__init__.py",
"chars": 63,
"preview": "\"\"\"\nA folder with asynchronous and synchronous extensions.\n\"\"\"\n"
},
{
"path": "telebot/ext/aio/__init__.py",
"chars": 134,
"preview": "\"\"\"\nA folder with all the async extensions.\n\"\"\"\n\nfrom .webhooks import AsyncWebhookListener\n\n\n__all__ = [\n \"AsyncWebh"
},
{
"path": "telebot/ext/aio/webhooks.py",
"chars": 3666,
"preview": "\"\"\"\nThis file is used by AsyncTeleBot.run_webhooks() function.\n\nFastapi and starlette(0.20.2+) libraries are required to"
},
{
"path": "telebot/ext/reloader.py",
"chars": 795,
"preview": "\nfrom watchdog.events import FileSystemEventHandler\nfrom watchdog.events import FileSystemEvent\nimport psutil\nimport os\n"
},
{
"path": "telebot/ext/sync/__init__.py",
"chars": 131,
"preview": "\"\"\"\nA folder with all the sync extensions.\n\"\"\"\n\nfrom .webhooks import SyncWebhookListener\n\n\n__all__ = [\n \"SyncWebhook"
},
{
"path": "telebot/ext/sync/webhooks.py",
"chars": 3397,
"preview": "\"\"\"\nThis file is used by TeleBot.run_webhooks() function.\nFastapi is required to run this script.\n\"\"\"\n\n# modules require"
},
{
"path": "telebot/formatting.py",
"chars": 15950,
"preview": "\"\"\"\r\nMarkdown & HTML formatting functions.\r\n\"\"\"\r\n\r\nimport re\r\nimport html\r\nfrom typing import Optional, List, Dict\r\n\r\n\r\n"
},
{
"path": "telebot/handler_backends.py",
"chars": 7969,
"preview": "import os\nimport pickle\nimport threading\n\nfrom telebot import apihelper\ntry:\n from redis import Redis\n redis_insta"
},
{
"path": "telebot/py.typed",
"chars": 0,
"preview": ""
},
{
"path": "telebot/service_utils.py",
"chars": 1969,
"preview": "import random\nimport string\nfrom io import BytesIO\n\ntry:\n # noinspection PyPackageRequirements\n from PIL import Im"
},
{
"path": "telebot/states/__init__.py",
"chars": 4401,
"preview": "\"\"\"\nContains classes for states and state groups.\n\"\"\"\n\nfrom telebot import types\n\n\nclass State:\n \"\"\"\n Class repres"
},
{
"path": "telebot/states/asyncio/__init__.py",
"chars": 132,
"preview": "from .context import StateContext\nfrom .middleware import StateMiddleware\n\n__all__ = [\n \"StateContext\",\n \"StateMid"
},
{
"path": "telebot/states/asyncio/context.py",
"chars": 4948,
"preview": "from telebot.states import State\nfrom telebot.types import CallbackQuery, Message\nfrom telebot.async_telebot import Asyn"
},
{
"path": "telebot/states/asyncio/middleware.py",
"chars": 730,
"preview": "from telebot.asyncio_handler_backends import BaseMiddleware\nfrom telebot.async_telebot import AsyncTeleBot\nfrom telebot."
},
{
"path": "telebot/states/sync/__init__.py",
"chars": 131,
"preview": "from .context import StateContext\nfrom .middleware import StateMiddleware\n\n__all__ = [\n 'StateContext',\n 'StateMid"
},
{
"path": "telebot/states/sync/context.py",
"chars": 4731,
"preview": "from telebot.states import State, StatesGroup\nfrom telebot.types import CallbackQuery, Message\nfrom telebot import TeleB"
},
{
"path": "telebot/states/sync/middleware.py",
"chars": 680,
"preview": "from telebot.handler_backends import BaseMiddleware\nfrom telebot import TeleBot\nfrom telebot.states.sync.context import "
},
{
"path": "telebot/storage/__init__.py",
"chars": 401,
"preview": "from telebot.storage.memory_storage import StateMemoryStorage\nfrom telebot.storage.redis_storage import StateRedisStorag"
},
{
"path": "telebot/storage/base_storage.py",
"chars": 3562,
"preview": "import copy\n\n\nclass StateStorageBase:\n def __init__(self) -> None:\n pass\n\n def set_data(self, chat_id, user"
},
{
"path": "telebot/storage/memory_storage.py",
"chars": 5799,
"preview": "from telebot.storage.base_storage import StateStorageBase, StateDataContext\nfrom typing import Optional, Union\n\n\nclass S"
},
{
"path": "telebot/storage/pickle_storage.py",
"chars": 7136,
"preview": "import os\nimport pickle\nimport threading\nfrom typing import Optional, Union, Callable\nfrom telebot.storage.base_storage "
},
{
"path": "telebot/storage/redis_storage.py",
"chars": 9450,
"preview": "import json\nfrom telebot.storage.base_storage import StateStorageBase, StateDataContext\nfrom typing import Optional, Uni"
},
{
"path": "telebot/types.py",
"chars": 584329,
"preview": "# -*- coding: utf-8 -*-\nfrom __future__ import annotations\n\nfrom io import IOBase\nimport logging\nimport os\nimport traceb"
},
{
"path": "telebot/util.py",
"chars": 21800,
"preview": "# -*- coding: utf-8 -*-\nimport re\nimport threading\nimport traceback\nfrom typing import Any, Callable, List, Dict, Option"
},
{
"path": "telebot/version.py",
"chars": 99,
"preview": "# Versions should comply with PEP440.\r\n# This line is parsed in setup.py:\r\n__version__ = '4.32.0'\r\n"
}
]
// ... and 6 more files (download for full content)
About this extraction
This page contains the full source code of the eternnoir/pyTelegramBotAPI GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 206 files (3.7 MB), approximately 972.0k tokens, and a symbol index with 2829 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.