We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 00ebc9b + 7034a77 commit 464d91fCopy full SHA for 464d91f
1 file changed
WebStreamer/bot/plugins/stream.py
@@ -31,13 +31,17 @@ async def media_receive_handler(_, m: Message):
31
stream_link = f"{Var.URL}{log_msg.message_id}/{quote_plus(get_name(m))}?hash={get_hash(log_msg)}"
32
short_link = f"{Var.URL}{get_hash(log_msg)}{log_msg.message_id}"
33
logging.info(f"Generated link: {stream_link} for {m.from_user.first_name}")
34
+ rm = InlineKeyboardMarkup(
35
+ [[InlineKeyboardButton("Open", url=stream_link)]]
36
+ )
37
+ if Var.FQDN == Var.BIND_ADDRESS:
38
+ # dkabl
39
+ rm = None
40
await m.reply_text(
41
text="<code>{}</code>\n(<a href='{}'>shortened</a>)".format(
42
stream_link, short_link
43
),
44
quote=True,
45
parse_mode="html",
- reply_markup=InlineKeyboardMarkup(
- [[InlineKeyboardButton("Open", url=stream_link)]]
- ),
46
+ reply_markup=rm,
47
)
0 commit comments