Skip to content

Commit afd8f00

Browse files
committed
Renamed reply_to_msg_id to reply_to
1 parent 9a49e3a commit afd8f00

20 files changed

Lines changed: 22 additions & 19 deletions

pyrogram/enums/chat_members_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ class ChatMembersFilter(AutoName):
4040

4141
ADMINISTRATORS = raw.types.ChannelParticipantsAdmins
4242
"Administrators"
43+
44+
DELETED = raw.types.ChannelParticipantsBanned
45+
"Deleted accounts"

pyrogram/methods/bots/send_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def send_game(
8484
),
8585
message="",
8686
silent=disable_notification or None,
87-
reply_to_msg_id=reply_to_message_id,
87+
reply_to=reply_to_message_id,
8888
random_id=self.rnd_id(),
8989
noforwards=protect_content,
9090
reply_markup=await reply_markup.write(self) if reply_markup else None

pyrogram/methods/bots/send_inline_bot_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ async def send_inline_bot_result(
7070
id=result_id,
7171
random_id=self.rnd_id(),
7272
silent=disable_notification or None,
73-
reply_to_msg_id=reply_to_message_id
73+
reply_to=reply_to_message_id
7474
)
7575
)

pyrogram/methods/messages/copy_media_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def copy_media_group(
119119
peer=await self.resolve_peer(chat_id),
120120
multi_media=multi_media,
121121
silent=disable_notification or None,
122-
reply_to_msg_id=reply_to_message_id,
122+
reply_to=reply_to_message_id,
123123
schedule_date=utils.datetime_to_timestamp(schedule_date)
124124
),
125125
sleep_threshold=60

pyrogram/methods/messages/send_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ async def progress(current, total):
230230
peer=await self.resolve_peer(chat_id),
231231
media=media,
232232
silent=disable_notification or None,
233-
reply_to_msg_id=reply_to_message_id,
233+
reply_to=reply_to_message_id,
234234
random_id=self.rnd_id(),
235235
schedule_date=utils.datetime_to_timestamp(schedule_date),
236236
noforwards=protect_content,

pyrogram/methods/messages/send_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def progress(current, total):
217217
peer=await self.resolve_peer(chat_id),
218218
media=media,
219219
silent=disable_notification or None,
220-
reply_to_msg_id=reply_to_message_id,
220+
reply_to=reply_to_message_id,
221221
random_id=self.rnd_id(),
222222
schedule_date=utils.datetime_to_timestamp(schedule_date),
223223
noforwards=protect_content,

pyrogram/methods/messages/send_cached_media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def send_cached_media(
103103
peer=await self.resolve_peer(chat_id),
104104
media=utils.get_input_media_from_file_id(file_id),
105105
silent=disable_notification or None,
106-
reply_to_msg_id=reply_to_message_id,
106+
reply_to=reply_to_message_id,
107107
random_id=self.rnd_id(),
108108
schedule_date=utils.datetime_to_timestamp(schedule_date),
109109
noforwards=protect_content,

pyrogram/methods/messages/send_contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async def send_contact(
101101
),
102102
message="",
103103
silent=disable_notification or None,
104-
reply_to_msg_id=reply_to_message_id,
104+
reply_to=reply_to_message_id,
105105
random_id=self.rnd_id(),
106106
schedule_date=utils.datetime_to_timestamp(schedule_date),
107107
noforwards=protect_content,

pyrogram/methods/messages/send_dice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async def send_dice(
9595
peer=await self.resolve_peer(chat_id),
9696
media=raw.types.InputMediaDice(emoticon=emoji),
9797
silent=disable_notification or None,
98-
reply_to_msg_id=reply_to_message_id,
98+
reply_to=reply_to_message_id,
9999
random_id=self.rnd_id(),
100100
schedule_date=utils.datetime_to_timestamp(schedule_date),
101101
noforwards=protect_content,

pyrogram/methods/messages/send_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async def progress(current, total):
195195
peer=await self.resolve_peer(chat_id),
196196
media=media,
197197
silent=disable_notification or None,
198-
reply_to_msg_id=reply_to_message_id,
198+
reply_to=reply_to_message_id,
199199
random_id=self.rnd_id(),
200200
schedule_date=utils.datetime_to_timestamp(schedule_date),
201201
noforwards=protect_content,

0 commit comments

Comments
 (0)