Spaces:
Runtime error
Runtime error
Jishu Developer
commited on
Update channel_post.py
Browse files- plugins/channel_post.py +3 -3
plugins/channel_post.py
CHANGED
@@ -27,7 +27,7 @@ async def channel_post(client: Client, message: Message):
|
|
27 |
post_message = await message.copy(chat_id = client.db_channel.id, disable_notification=True)
|
28 |
except Exception as e:
|
29 |
print(e)
|
30 |
-
await reply_text.edit_text("Something
|
31 |
return
|
32 |
converted_id = post_message.id * abs(client.db_channel.id)
|
33 |
string = f"get-{converted_id}"
|
@@ -36,7 +36,7 @@ async def channel_post(client: Client, message: Message):
|
|
36 |
|
37 |
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
|
38 |
|
39 |
-
await reply_text.edit(f"<b>Here
|
40 |
|
41 |
if not DISABLE_CHANNEL_BUTTON:
|
42 |
await post_message.edit_reply_markup(reply_markup)
|
@@ -71,4 +71,4 @@ async def new_post(client: Client, message: Message):
|
|
71 |
# Don't Remove Credit 🥺
|
72 |
# Telegram Channel @Madflix_Bots
|
73 |
# Backup Channel @JishuBotz
|
74 |
-
# Developer @JishuDeveloper
|
|
|
27 |
post_message = await message.copy(chat_id = client.db_channel.id, disable_notification=True)
|
28 |
except Exception as e:
|
29 |
print(e)
|
30 |
+
await reply_text.edit_text("Something Went Wrong..!")
|
31 |
return
|
32 |
converted_id = post_message.id * abs(client.db_channel.id)
|
33 |
string = f"get-{converted_id}"
|
|
|
36 |
|
37 |
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
|
38 |
|
39 |
+
await reply_text.edit(f"<b>Here Is Your Link</b>\n\n{link}", reply_markup=reply_markup, disable_web_page_preview = True)
|
40 |
|
41 |
if not DISABLE_CHANNEL_BUTTON:
|
42 |
await post_message.edit_reply_markup(reply_markup)
|
|
|
71 |
# Don't Remove Credit 🥺
|
72 |
# Telegram Channel @Madflix_Bots
|
73 |
# Backup Channel @JishuBotz
|
74 |
+
# Developer @JishuDeveloper
|