Skip to content

Commit 1f50f42

Browse files
authored
add broadcast cmd
1 parent 4933b7b commit 1f50f42

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

plugins/start.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import asyncio
44
from pyrogram import Client, filters, __version__
5-
65
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
76
from pyrogram.errors import FloodWait
87

@@ -13,7 +12,7 @@
1312
from database.sql import add_user, query_msg
1413

1514

16-
########₹₹₹₹#################₹#₹₹₹₹₹!₹###########₹₹₹₹₹₹₹₹##₹#####
15+
#=====================================================================================##
1716

1817
USERS_LIST = """<b>⭕️Total:</b>\n\n⭕️Subscribers - {}\n⭕️Blocked- {}"""
1918

@@ -22,13 +21,13 @@
2221
REPLY_ERROR = """<code>Use this command as a replay to any telegram message with out any spaces.</code>"""
2322

2423

25-
#########₹₹₹₹#################₹#₹₹₹₹₹!₹###########₹₹₹₹₹₹₹₹##₹#####
24+
#=====================================================================================##
2625

2726

2827
@Bot.on_message(filters.command('start') & filters.private & subscribed)
2928
async def start_command(client: Client, message: Message):
30-
id = m.from_user.id
31-
user_name = '@' + m.from_user.username if m.from_user.username else None
29+
id = message.from_user.id
30+
user_name = '@' + message.from_user.username if message.from_user.username else None
3231
await add_user(id, user_name)
3332
text = message.text
3433
if len(text)>7:
@@ -166,4 +165,4 @@ async def send_text(bot, m: Message):
166165
else:
167166
msg = await m.reply_text(REPLY_ERROR, m.message_id)
168167
await asyncio.sleep(8)
169-
await msg.delete()
168+
await msg.delete()

0 commit comments

Comments
 (0)