Skip to content

Commit 5e8b11e

Browse files
committed
update
1 parent 42dcc56 commit 5e8b11e

2,971 files changed

Lines changed: 8711 additions & 3336 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyrogram/errors/exceptions/all.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
count = 769
19+
count = 771
2020

2121
exceptions = {
2222
420: {
@@ -371,6 +371,7 @@
371371
"INPUT_METHOD_INVALID": "InputMethodInvalid",
372372
"INPUT_PEERS_EMPTY": "InputPeersEmpty",
373373
"INPUT_REQUEST_TOO_LONG": "InputRequestTooLong",
374+
"INPUT_STARS_NANOS_INVALID": "InputStarsNanosInvalid",
374375
"INPUT_TEXT_EMPTY": "InputTextEmpty",
375376
"INPUT_TEXT_TOO_LONG": "InputTextTooLong",
376377
"INPUT_USER_DEACTIVATED": "InputUserDeactivated",
@@ -528,6 +529,7 @@
528529
"RANDOM_ID_INVALID": "RandomIdInvalid",
529530
"RANDOM_LENGTH_INVALID": "RandomLengthInvalid",
530531
"RANGES_INVALID": "RangesInvalid",
532+
"RANK_INVALID": "RankInvalid",
531533
"REACTIONS_COUNT_INVALID": "ReactionsCountInvalid",
532534
"REACTIONS_TOO_MANY": "ReactionsTooMany",
533535
"REACTION_EMPTY": "ReactionEmpty",

pyrogram/errors/exceptions/bad_request_400.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,13 @@ class InputRequestTooLong(BadRequest):
18951895
MESSAGE = __doc__
18961896

18971897

1898+
class InputStarsNanosInvalid(BadRequest):
1899+
"""The specified stars nano amount is invalid."""
1900+
ID = "INPUT_STARS_NANOS_INVALID"
1901+
"""``str``: RPC Error ID"""
1902+
MESSAGE = __doc__
1903+
1904+
18981905
class InputTextEmpty(BadRequest):
18991906
"""The specified text is empty."""
19001907
ID = "INPUT_TEXT_EMPTY"
@@ -2827,7 +2834,7 @@ class PollVoteRequired(BadRequest):
28272834

28282835

28292836
class PrecheckoutFailed(BadRequest):
2830-
"""Precheckout failed."""
2837+
"""Precheckout failed. Probably you don't have enough funds to complete the purchase."""
28312838
ID = "PRECHECKOUT_FAILED"
28322839
"""``str``: RPC Error ID"""
28332840
MESSAGE = __doc__
@@ -2994,6 +3001,13 @@ class RangesInvalid(BadRequest):
29943001
MESSAGE = __doc__
29953002

29963003

3004+
class RankInvalid(BadRequest):
3005+
"""The specified member tag is invalid."""
3006+
ID = "RANK_INVALID"
3007+
"""``str``: RPC Error ID"""
3008+
MESSAGE = __doc__
3009+
3010+
29973011
class ReactionsCountInvalid(BadRequest):
29983012
"""The count of the reactions should be less than `stars_paid_reaction_amount_max` stars, you can't react with more number of stars, see [the docs for more info](https://core.telegram.org/api/config#client-configuration)."""
29993013
ID = "REACTIONS_COUNT_INVALID"

pyrogram/raw/all.py

Lines changed: 99 additions & 49 deletions
Large diffs are not rendered by default.

pyrogram/raw/base/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,11 @@
411411
from .star_gift_auction_acquired_gift import StarGiftAuctionAcquiredGift
412412
from .star_gift_active_auction_state import StarGiftActiveAuctionState
413413
from .input_star_gift_auction import InputStarGiftAuction
414+
from .passkey import Passkey
415+
from .input_passkey_response import InputPasskeyResponse
416+
from .input_passkey_credential import InputPasskeyCredential
417+
from .star_gift_background import StarGiftBackground
418+
from .star_gift_auction_round import StarGiftAuctionRound
419+
from .star_gift_attribute_rarity import StarGiftAttributeRarity
420+
from .keyboard_button_style import KeyboardButtonStyle
414421
from . import help, storage, auth, contacts, messages, updates, photos, upload, account, channels, payments, phone, stats, stickers, users, chatlists, bots, stories, premium, smsjobs, fragment

pyrogram/raw/base/access_point_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ def __init__(self):
4949
raise TypeError("Base types can only be used for type checking purposes: "
5050
"you tried to use a base type instance as argument, "
5151
"but you need to instantiate one of its constructors instead. "
52-
"More info: https://docs.kurigram.live/telegram/base/access-point-rule")
52+
"More info: https://docs.kurigram.icu/telegram/base/access-point-rule")

pyrogram/raw/base/account/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@
4848
from .resolved_business_chat_links import ResolvedBusinessChatLinks
4949
from .paid_messages_revenue import PaidMessagesRevenue
5050
from .saved_music_ids import SavedMusicIds
51+
from .passkeys import Passkeys
52+
from .passkey_registration_options import PasskeyRegistrationOptions

pyrogram/raw/base/account/authorization_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ def __init__(self):
5757
raise TypeError("Base types can only be used for type checking purposes: "
5858
"you tried to use a base type instance as argument, "
5959
"but you need to instantiate one of its constructors instead. "
60-
"More info: https://docs.kurigram.live/telegram/base/authorization-form")
60+
"More info: https://docs.kurigram.icu/telegram/base/authorization-form")

pyrogram/raw/base/account/authorizations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ def __init__(self):
5757
raise TypeError("Base types can only be used for type checking purposes: "
5858
"you tried to use a base type instance as argument, "
5959
"but you need to instantiate one of its constructors instead. "
60-
"More info: https://docs.kurigram.live/telegram/base/authorizations")
60+
"More info: https://docs.kurigram.icu/telegram/base/authorizations")

pyrogram/raw/base/account/auto_download_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ def __init__(self):
5757
raise TypeError("Base types can only be used for type checking purposes: "
5858
"you tried to use a base type instance as argument, "
5959
"but you need to instantiate one of its constructors instead. "
60-
"More info: https://docs.kurigram.live/telegram/base/auto-download-settings")
60+
"More info: https://docs.kurigram.icu/telegram/base/auto-download-settings")

pyrogram/raw/base/account/auto_save_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ def __init__(self):
5757
raise TypeError("Base types can only be used for type checking purposes: "
5858
"you tried to use a base type instance as argument, "
5959
"but you need to instantiate one of its constructors instead. "
60-
"More info: https://docs.kurigram.live/telegram/base/auto-save-settings")
60+
"More info: https://docs.kurigram.icu/telegram/base/auto-save-settings")

0 commit comments

Comments
 (0)