Skip to content

Commit d995c01

Browse files
authored
Add button when post directly in db channel
1 parent 2585aeb commit d995c01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/channel_post.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ async def new_post(client: Client, message: Message):
3737
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
3838
try:
3939
await message.edit_reply_markup(reply_markup)
40-
pass
40+
except Exception as e:
41+
print(e)
42+
pass

0 commit comments

Comments
 (0)