Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 6.3 for V13 #3392

Merged
merged 12 commits into from Dec 6, 2022
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -14,7 +14,7 @@ repos:
args:
- --diff
- --check
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -20,7 +20,7 @@ We have a vibrant community of developers helping each other in our `Telegram gr
:target: https://pypi.org/project/python-telegram-bot/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-6.2-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-6.3-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API versions

Expand Down
2 changes: 1 addition & 1 deletion README_RAW.rst
Expand Up @@ -20,7 +20,7 @@ We have a vibrant community of developers helping each other in our `Telegram gr
:target: https://pypi.org/project/python-telegram-bot-raw/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-6.2-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-6.3-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API versions

Expand Down
4 changes: 4 additions & 0 deletions docs/source/conf.py
Expand Up @@ -13,6 +13,7 @@
# serve to show the default.
import sys
import os
from pathlib import Path
# import telegram

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -50,6 +51,9 @@
# The master toctree document.
master_doc = 'index'

# Global substitutions
rst_prolog = (Path.cwd() / "substitutions/global.rst").read_text(encoding="utf-8")

# General information about the project.
project = u'python-telegram-bot'
copyright = u'2015-2022, Leandro Toledo'
Expand Down
5 changes: 5 additions & 0 deletions docs/source/substitutions/global.rst
@@ -0,0 +1,5 @@
.. |message_thread_id| replace:: Unique identifier for the target message thread of the forum topic.

.. |message_thread_id_arg| replace:: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only.

.. |chat_id_group| replace:: Unique identifier for the target chat or username of the target supergroup (in the format ``@supergroupusername``).
8 changes: 8 additions & 0 deletions docs/source/telegram.forumtopic.rst
@@ -0,0 +1,8 @@
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/v13.x/telegram/forumtopic.py

telegram.ForumTopic
harshil21 marked this conversation as resolved.
Show resolved Hide resolved
===================

.. autoclass:: telegram.ForumTopic
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.forumtopicclosed.rst
@@ -0,0 +1,8 @@
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/v13.x/telegram/forumtopic.py

telegram.ForumTopicClosed
=========================

.. autoclass:: telegram.ForumTopicClosed
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.forumtopiccreated.rst
@@ -0,0 +1,8 @@
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/v13.x/telegram/forumtopic.py

telegram.ForumTopicCreated
==========================

.. autoclass:: telegram.ForumTopicCreated
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.forumtopicreopened.rst
@@ -0,0 +1,8 @@
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/v13.x/telegram/forumtopic.py

telegram.ForumTopicReopened
===========================

.. autoclass:: telegram.ForumTopicReopened
:members:
:show-inheritance:
4 changes: 4 additions & 0 deletions docs/source/telegram.rst
Expand Up @@ -39,6 +39,10 @@ telegram package
telegram.error
telegram.file
telegram.forcereply
telegram.forumtopic
telegram.forumtopicclosed
telegram.forumtopiccreated
telegram.forumtopicreopened
telegram.inlinekeyboardbutton
telegram.inlinekeyboardmarkup
telegram.inputfile
Expand Down
5 changes: 5 additions & 0 deletions telegram/__init__.py
Expand Up @@ -64,6 +64,7 @@
from .replykeyboardmarkup import ReplyKeyboardMarkup
from .replykeyboardremove import ReplyKeyboardRemove
from .forcereply import ForceReply
from .forumtopic import ForumTopic, ForumTopicClosed, ForumTopicCreated, ForumTopicReopened
from .error import TelegramError
from .files.inputfile import InputFile
from .files.file import File
Expand Down Expand Up @@ -230,6 +231,10 @@
'File',
'FileCredentials',
'ForceReply',
'ForumTopic',
'ForumTopicClosed',
'ForumTopicCreated',
'ForumTopicReopened',
'Game',
'GameHighScore',
'IdDocumentData',
Expand Down