|
33 | 33 |
|
34 | 34 | log = logging.getLogger(__name__) |
35 | 35 |
|
36 | | - |
37 | 36 | class Str(str): |
38 | 37 | def __init__(self, *args): |
39 | 38 | super().__init__() |
@@ -2108,11 +2107,6 @@ async def reply_animation( |
2108 | 2107 | Raises: |
2109 | 2108 | RPCError: In case of a Telegram RPC error. |
2110 | 2109 | """ |
2111 | | - if reply_parameters is None: |
2112 | | - reply_parameters = types.ReplyParameters( |
2113 | | - message_id=self.id |
2114 | | - ) |
2115 | | - |
2116 | 2110 | if quote is not None: |
2117 | 2111 | log.warning( |
2118 | 2112 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -2490,11 +2484,6 @@ async def reply_audio( |
2490 | 2484 | Raises: |
2491 | 2485 | RPCError: In case of a Telegram RPC error. |
2492 | 2486 | """ |
2493 | | - if reply_parameters is None: |
2494 | | - reply_parameters = types.ReplyParameters( |
2495 | | - message_id=self.id |
2496 | | - ) |
2497 | | - |
2498 | 2487 | if quote is not None: |
2499 | 2488 | log.warning( |
2500 | 2489 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -2800,11 +2789,6 @@ async def reply_contact( |
2800 | 2789 | Raises: |
2801 | 2790 | RPCError: In case of a Telegram RPC error. |
2802 | 2791 | """ |
2803 | | - if reply_parameters is None: |
2804 | | - reply_parameters = types.ReplyParameters( |
2805 | | - message_id=self.id |
2806 | | - ) |
2807 | | - |
2808 | 2792 | if quote is not None: |
2809 | 2793 | log.warning( |
2810 | 2794 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -3095,11 +3079,6 @@ async def reply_document( |
3095 | 3079 | Raises: |
3096 | 3080 | RPCError: In case of a Telegram RPC error. |
3097 | 3081 | """ |
3098 | | - if reply_parameters is None: |
3099 | | - reply_parameters = types.ReplyParameters( |
3100 | | - message_id=self.id |
3101 | | - ) |
3102 | | - |
3103 | 3082 | if quote is not None: |
3104 | 3083 | log.warning( |
3105 | 3084 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -3387,11 +3366,6 @@ async def reply_game( |
3387 | 3366 | Raises: |
3388 | 3367 | RPCError: In case of a Telegram RPC error. |
3389 | 3368 | """ |
3390 | | - if reply_parameters is None: |
3391 | | - reply_parameters = types.ReplyParameters( |
3392 | | - message_id=self.id |
3393 | | - ) |
3394 | | - |
3395 | 3369 | if quote is not None: |
3396 | 3370 | log.warning( |
3397 | 3371 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -3658,11 +3632,6 @@ async def reply_invoice( |
3658 | 3632 | Returns: |
3659 | 3633 | :obj:`~pyrogram.types.Message`: On success, the sent invoice message is returned. |
3660 | 3634 | """ |
3661 | | - if reply_parameters is None: |
3662 | | - reply_parameters = types.ReplyParameters( |
3663 | | - message_id=self.id |
3664 | | - ) |
3665 | | - |
3666 | 3635 | if message_thread_id is None: |
3667 | 3636 | message_thread_id = self.message_thread_id |
3668 | 3637 |
|
@@ -4013,11 +3982,6 @@ async def reply_location( |
4013 | 3982 | Raises: |
4014 | 3983 | RPCError: In case of a Telegram RPC error. |
4015 | 3984 | """ |
4016 | | - if reply_parameters is None: |
4017 | | - reply_parameters = types.ReplyParameters( |
4018 | | - message_id=self.id |
4019 | | - ) |
4020 | | - |
4021 | 3985 | if quote is not None: |
4022 | 3986 | log.warning( |
4023 | 3987 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -4239,11 +4203,6 @@ async def reply_media_group( |
4239 | 4203 | Raises: |
4240 | 4204 | RPCError: In case of a Telegram RPC error. |
4241 | 4205 | """ |
4242 | | - if reply_parameters is None: |
4243 | | - reply_parameters = types.ReplyParameters( |
4244 | | - message_id=self.id |
4245 | | - ) |
4246 | | - |
4247 | 4206 | if quote is not None: |
4248 | 4207 | log.warning( |
4249 | 4208 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -4463,11 +4422,6 @@ async def reply( |
4463 | 4422 | Raises: |
4464 | 4423 | RPCError: In case of a Telegram RPC error. |
4465 | 4424 | """ |
4466 | | - if reply_parameters is None: |
4467 | | - reply_parameters = types.ReplyParameters( |
4468 | | - message_id=self.id |
4469 | | - ) |
4470 | | - |
4471 | 4425 | if quote is not None: |
4472 | 4426 | log.warning( |
4473 | 4427 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -4792,11 +4746,6 @@ async def reply_photo( |
4792 | 4746 | Raises: |
4793 | 4747 | RPCError: In case of a Telegram RPC error. |
4794 | 4748 | """ |
4795 | | - if reply_parameters is None: |
4796 | | - reply_parameters = types.ReplyParameters( |
4797 | | - message_id=self.id |
4798 | | - ) |
4799 | | - |
4800 | 4749 | if quote is not None: |
4801 | 4750 | log.warning( |
4802 | 4751 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -5177,11 +5126,6 @@ async def reply_poll( |
5177 | 5126 | Raises: |
5178 | 5127 | RPCError: In case of a Telegram RPC error. |
5179 | 5128 | """ |
5180 | | - if reply_parameters is None: |
5181 | | - reply_parameters = types.ReplyParameters( |
5182 | | - message_id=self.id |
5183 | | - ) |
5184 | | - |
5185 | 5129 | if quote is not None: |
5186 | 5130 | log.warning( |
5187 | 5131 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -5493,11 +5437,6 @@ async def reply_dice( |
5493 | 5437 | Returns: |
5494 | 5438 | :obj:`~pyrogram.types.Message`: On success, the sent dice message is returned. |
5495 | 5439 | """ |
5496 | | - if reply_parameters is None: |
5497 | | - reply_parameters = types.ReplyParameters( |
5498 | | - message_id=self.id |
5499 | | - ) |
5500 | | - |
5501 | 5440 | if message_thread_id is None: |
5502 | 5441 | message_thread_id = self.message_thread_id |
5503 | 5442 |
|
@@ -5751,11 +5690,6 @@ async def reply_sticker( |
5751 | 5690 | Raises: |
5752 | 5691 | RPCError: In case of a Telegram RPC error. |
5753 | 5692 | """ |
5754 | | - if reply_parameters is None: |
5755 | | - reply_parameters = types.ReplyParameters( |
5756 | | - message_id=self.id |
5757 | | - ) |
5758 | | - |
5759 | 5693 | if quote is not None: |
5760 | 5694 | log.warning( |
5761 | 5695 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -6049,11 +5983,6 @@ async def reply_venue( |
6049 | 5983 | Raises: |
6050 | 5984 | RPCError: In case of a Telegram RPC error. |
6051 | 5985 | """ |
6052 | | - if reply_parameters is None: |
6053 | | - reply_parameters = types.ReplyParameters( |
6054 | | - message_id=self.id |
6055 | | - ) |
6056 | | - |
6057 | 5986 | if quote is not None: |
6058 | 5987 | log.warning( |
6059 | 5988 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -6394,11 +6323,6 @@ async def reply_video( |
6394 | 6323 | Raises: |
6395 | 6324 | RPCError: In case of a Telegram RPC error. |
6396 | 6325 | """ |
6397 | | - if reply_parameters is None: |
6398 | | - reply_parameters = types.ReplyParameters( |
6399 | | - message_id=self.id |
6400 | | - ) |
6401 | | - |
6402 | 6326 | if quote is not None: |
6403 | 6327 | log.warning( |
6404 | 6328 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -6813,11 +6737,6 @@ async def reply_video_note( |
6813 | 6737 | Raises: |
6814 | 6738 | RPCError: In case of a Telegram RPC error. |
6815 | 6739 | """ |
6816 | | - if reply_parameters is None: |
6817 | | - reply_parameters = types.ReplyParameters( |
6818 | | - message_id=self.id |
6819 | | - ) |
6820 | | - |
6821 | 6740 | if quote is not None: |
6822 | 6741 | log.warning( |
6823 | 6742 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -7162,11 +7081,6 @@ async def reply_voice( |
7162 | 7081 | Raises: |
7163 | 7082 | RPCError: In case of a Telegram RPC error. |
7164 | 7083 | """ |
7165 | | - if reply_parameters is None: |
7166 | | - reply_parameters = types.ReplyParameters( |
7167 | | - message_id=self.id |
7168 | | - ) |
7169 | | - |
7170 | 7084 | if quote is not None: |
7171 | 7085 | log.warning( |
7172 | 7086 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -7442,11 +7356,6 @@ async def reply_paid_media( |
7442 | 7356 | Returns: |
7443 | 7357 | List of :obj:`~pyrogram.types.Message`: On success, a list of messages is returned. |
7444 | 7358 | """ |
7445 | | - if reply_parameters is None: |
7446 | | - reply_parameters = types.ReplyParameters( |
7447 | | - message_id=self.id |
7448 | | - ) |
7449 | | - |
7450 | 7359 | if direct_messages_topic_id is None: |
7451 | 7360 | direct_messages_topic_id = self.direct_messages_topic_id |
7452 | 7361 |
|
@@ -7647,11 +7556,6 @@ async def reply_cached_media( |
7647 | 7556 | Raises: |
7648 | 7557 | RPCError: In case of a Telegram RPC error. |
7649 | 7558 | """ |
7650 | | - if reply_parameters is None: |
7651 | | - reply_parameters = types.ReplyParameters( |
7652 | | - message_id=self.id |
7653 | | - ) |
7654 | | - |
7655 | 7559 | if quote is not None: |
7656 | 7560 | log.warning( |
7657 | 7561 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -7889,11 +7793,6 @@ async def reply_inline_bot_result( |
7889 | 7793 | Raises: |
7890 | 7794 | RPCError: In case of a Telegram RPC error. |
7891 | 7795 | """ |
7892 | | - if reply_parameters is None: |
7893 | | - reply_parameters = types.ReplyParameters( |
7894 | | - message_id=self.id |
7895 | | - ) |
7896 | | - |
7897 | 7796 | if quote is not None: |
7898 | 7797 | log.warning( |
7899 | 7798 | "`quote` parameter is deprecated and will be removed in future updates." |
@@ -8067,11 +7966,6 @@ async def reply_checklist( |
8067 | 7966 | Raises: |
8068 | 7967 | RPCError: In case of a Telegram RPC error. |
8069 | 7968 | """ |
8070 | | - if reply_parameters is None: |
8071 | | - reply_parameters = types.ReplyParameters( |
8072 | | - message_id=self.id |
8073 | | - ) |
8074 | | - |
8075 | 7969 | if quote is not None: |
8076 | 7970 | log.warning( |
8077 | 7971 | "`quote` parameter is deprecated and will be removed in future updates." |
|
0 commit comments