Skip to content

Commit

Permalink
Some changes in Broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
shahsad-kp committed Jun 14, 2021
1 parent 74b7b44 commit 1131217
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions InlineBot/plugins/adminplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ async def broadcast_confrm(client: CodeXBotz, query):
blocked = 0
peerid = 0

await query.message.edit(text = 'Broadcasting message, Please wait', reply_markup = None)

for user_id in user_ids:
try:
await message.copy(user_id)
Expand All @@ -90,5 +92,6 @@ async def broadcast_confrm(client: CodeXBotz, query):
Deleted accounts: {str(deleted)} (<i>Deleted from Database</i>)
Failed : {str(peerid)}"""

await query.message.edit(text)
await message.delete()
await query.message.reply(text)
await query.message.delete()
await message.delete()

0 comments on commit 1131217

Please sign in to comment.