mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 19:37:34 +08:00
replace \n with space
This commit is contained in:
@@ -311,7 +311,7 @@ def choose_link(call):
|
|||||||
if result.get("type") == "resource":
|
if result.get("type") == "resource":
|
||||||
caption = "{}\n\n{}".format(result["cnname"], result["share"])
|
caption = "{}\n\n{}".format(result["cnname"], result["share"])
|
||||||
else:
|
else:
|
||||||
caption = result["all"]
|
caption = result["all"].replace(r"\n", " ")
|
||||||
bot.send_chat_action(call.message.chat.id, 'upload_document')
|
bot.send_chat_action(call.message.chat.id, 'upload_document')
|
||||||
bot.send_document(call.message.chat.id, f, caption=caption)
|
bot.send_document(call.message.chat.id, f, caption=caption)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user