File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -75,24 +75,6 @@ async def start_command(client: Client, message: Message):
7575 )
7676 return
7777
78- @Bot .on_message (filters .private & filters .user (ADMINS ) & ~ filters .command (['start' ,'batch' ]))
79- async def channel_post (client : Client , message : Message ):
80- reply_text = await message .reply_text ("Please Wait...!" , quote = True )
81- try :
82- post_message = await message .copy (chat_id = CHANNEL_ID , disable_notification = True )
83- except FloodWait as e :
84- await asyncio .sleep (e .x )
85- post_message = await message .copy (chat_id = CHANNEL_ID , disable_notification = True )
86- except :
87- await reply_text .edit_text ("Something went Wrong..!" )
88- return
89- converted_id = post_message .message_id * abs (CHANNEL_ID )
90- string = f"get-{ converted_id } "
91- base64_string = await encode (string )
92- link = f"https://t.me/{ client .username } ?start={ base64_string } "
93- reply_markup = InlineKeyboardMarkup ([[InlineKeyboardButton ("🔁 Share URL" , url = f'https://telegram.me/share/url?url={ link } ' )]])
94- await reply_text .edit (f"<b>Here is your link</b>\n \n { link } " , reply_markup = reply_markup , disable_web_page_preview = True )
95-
9678@Bot .on_message (filters .command ('start' ) & filters .private )
9779async def not_joined (client : Client , message : Message ):
9880 text = "<b>You need to join in my Channel/Group to use me\n \n Kindly Please join Channel</b>"
You can’t perform that action at this time.
0 commit comments