Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Api 9.0 gifts#4763

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Bibo-Joshi merged 10 commits intoapi_9.0fromapi_9.0-gifts
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
10 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletionschanges/unreleased/4756.JT5nmUmGRG6qDEh5ScMn5f.toml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,3 +11,7 @@ closes_threads = []
uid = "4759"
author_uid = "Bibo-Joshi"
closes_threads = []
[[pull_requests]]
uid = "4763"
author_uid = "aelkheir"
closes_threads = []
10 changes: 10 additions & 0 deletionsdocs/source/inclusions/bot_methods.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -411,6 +411,8 @@

* - :meth:`~telegram.Bot.get_business_connection`
- Used for getting information about the business account.
* - :meth:`~telegram.Bot.get_business_account_gifts`
- Used for getting gifts owned by the business account.
* - :meth:`~telegram.Bot.read_business_message`
- Used for marking a message as read.
* - :meth:`~telegram.Bot.delete_business_messages`
Expand All@@ -421,6 +423,14 @@
- Used for setting the business account username.
* - :meth:`~telegram.Bot.set_business_account_bio`
- Used for setting the business account bio.
* - :meth:`~telegram.Bot.set_business_account_gift_settings`
- Used for setting the business account gift settings.
* - :meth:`~telegram.Bot.convert_gift_to_stars`
- Used for converting owned reqular gifts to stars.
* - :meth:`~telegram.Bot.upgrade_gift`
- Used for upgrading owned regular gifts to unique ones.
* - :meth:`~telegram.Bot.transfer_gift`
- Used for transferring owned unique gifts to another user.
Comment on lines +428 to +433
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should these go into "payments and stars" above? I guess in the end it doesn't matter much …



.. raw:: html
Expand Down
6 changes: 6 additions & 0 deletionsdocs/source/telegram.acceptedgifttypes.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
AcceptedGiftTypes
=================

.. autoclass:: telegram.AcceptedGiftTypes
:members:
:show-inheritance:
12 changes: 12 additions & 0 deletionsdocs/source/telegram.at-tree.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,7 @@ Available Types
.. toctree::
:titlesonly:

telegram.acceptedgifttypes
telegram.animation
telegram.audio
telegram.birthdate
Expand DownExpand Up@@ -76,6 +77,7 @@ Available Types
telegram.forumtopicreopened
telegram.generalforumtopichidden
telegram.generalforumtopicunhidden
telegram.giftinfo
telegram.giveaway
telegram.giveawaycompleted
telegram.giveawaycreated
Expand DownExpand Up@@ -117,6 +119,10 @@ Available Types
telegram.messageoriginuser
telegram.messagereactioncountupdated
telegram.messagereactionupdated
telegram.ownedgift
telegram.ownedgiftregular
telegram.ownedgifts
telegram.ownedgiftunique
telegram.paidmedia
telegram.paidmediainfo
telegram.paidmediaphoto
Expand All@@ -142,6 +148,12 @@ Available Types
telegram.switchinlinequerychosenchat
telegram.telegramobject
telegram.textquote
telegram.uniquegift
telegram.uniquegiftbackdrop
telegram.uniquegiftbackdropcolors
telegram.uniquegiftinfo
telegram.uniquegiftmodel
telegram.uniquegiftsymbol
telegram.update
telegram.user
telegram.userchatboosts
Expand Down
7 changes: 7 additions & 0 deletionsdocs/source/telegram.giftinfo.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
GiftInfo
========

.. autoclass:: telegram.GiftInfo
:members:
:show-inheritance:

6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgift.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
OwnedGift
=========

.. autoclass:: telegram.OwnedGift
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgiftregular.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
OwnedGiftRegular
================

.. autoclass:: telegram.OwnedGiftRegular
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgifts.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
OwnedGifts
==========

.. autoclass:: telegram.OwnedGifts
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgiftunique.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
OwnedGiftUnique
===============

.. autoclass:: telegram.OwnedGiftUnique
:members:
:show-inheritance:
7 changes: 7 additions & 0 deletionsdocs/source/telegram.uniquegift.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
UniqueGift
==========

.. autoclass:: telegram.UniqueGift
:members:
:show-inheritance:

7 changes: 7 additions & 0 deletionsdocs/source/telegram.uniquegiftbackdrop.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
UniqueGiftBackdrop
==================

.. autoclass:: telegram.UniqueGiftBackdrop
:members:
:show-inheritance:

7 changes: 7 additions & 0 deletionsdocs/source/telegram.uniquegiftbackdropcolors.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
UniqueGiftBackdropColors
========================

.. autoclass:: telegram.UniqueGiftBackdropColors
:members:
:show-inheritance:

7 changes: 7 additions & 0 deletionsdocs/source/telegram.uniquegiftinfo.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
UniqueGiftInfo
==============

.. autoclass:: telegram.UniqueGiftInfo
:members:
:show-inheritance:

7 changes: 7 additions & 0 deletionsdocs/source/telegram.uniquegiftmodel.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
UniqueGiftModel
===============

.. autoclass:: telegram.UniqueGiftModel
:members:
:show-inheritance:

7 changes: 7 additions & 0 deletionsdocs/source/telegram.uniquegiftsymbol.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
UniqueGiftSymbol
================

.. autoclass:: telegram.UniqueGiftSymbol
:members:
:show-inheritance:

23 changes: 22 additions & 1 deletiontelegram/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@

__author__ = "devs@python-telegram-bot.org"
__all__ = (
"AcceptedGiftTypes",
"AffiliateInfo",
"Animation",
"Audio",
Expand DownExpand Up@@ -104,6 +105,7 @@
"GeneralForumTopicHidden",
"GeneralForumTopicUnhidden",
"Gift",
"GiftInfo",
"Gifts",
"Giveaway",
"GiveawayCompleted",
Expand DownExpand Up@@ -181,6 +183,10 @@
"MessageReactionCountUpdated",
"MessageReactionUpdated",
"OrderInfo",
"OwnedGift",
"OwnedGiftRegular",
"OwnedGiftUnique",
"OwnedGifts",
"PaidMedia",
"PaidMediaInfo",
"PaidMediaPhoto",
Expand DownExpand Up@@ -245,6 +251,12 @@
"TransactionPartnerTelegramAds",
"TransactionPartnerTelegramApi",
"TransactionPartnerUser",
"UniqueGift",
"UniqueGiftBackdrop",
"UniqueGiftBackdropColors",
"UniqueGiftInfo",
"UniqueGiftModel",
"UniqueGiftSymbol",
"Update",
"User",
"UserChatBoosts",
Expand DownExpand Up@@ -393,7 +405,7 @@
from ._games.callbackgame import CallbackGame
from ._games.game import Game
from ._games.gamehighscore import GameHighScore
from ._gifts import Gift, Gifts
from ._gifts importAcceptedGiftTypes,Gift, GiftInfo, Gifts
from ._giveaway import Giveaway, GiveawayCompleted, GiveawayCreated, GiveawayWinners
from ._inline.inlinekeyboardbutton import InlineKeyboardButton
from ._inline.inlinekeyboardmarkup import InlineKeyboardMarkup
Expand DownExpand Up@@ -445,6 +457,7 @@
MessageOriginUser,
)
from ._messagereactionupdated import MessageReactionCountUpdated, MessageReactionUpdated
from ._ownedgift import OwnedGift, OwnedGiftRegular, OwnedGifts, OwnedGiftUnique
from ._paidmedia import (
PaidMedia,
PaidMediaInfo,
Expand DownExpand Up@@ -510,6 +523,14 @@
from ._story import Story
from ._switchinlinequerychosenchat import SwitchInlineQueryChosenChat
from ._telegramobject import TelegramObject
from ._uniquegift import (
UniqueGift,
UniqueGiftBackdrop,
UniqueGiftBackdropColors,
UniqueGiftInfo,
UniqueGiftModel,
UniqueGiftSymbol,
)
from ._update import Update
from ._user import User
from ._userprofilephotos import UserProfilePhotos
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp