mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
Add pickle when restart
This commit is contained in:
parent
f6523c1ff8
commit
6fff16e4dd
1 changed files with 2 additions and 3 deletions
|
|
@ -46,9 +46,8 @@ async def log_file(bot, message):
|
||||||
}
|
}
|
||||||
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
||||||
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
||||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text="💬 View in Web", url=link)]])
|
|
||||||
except:
|
except:
|
||||||
markup = None
|
link = None
|
||||||
await message.reply_document(
|
await message.reply_document(
|
||||||
"MissKatyLogs.txt",
|
"MissKatyLogs.txt",
|
||||||
caption="Log Bot MissKatyPyro",
|
caption="Log Bot MissKatyPyro",
|
||||||
|
|
@ -57,7 +56,7 @@ async def log_file(bot, message):
|
||||||
[
|
[
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
"🌀 Open in Web",
|
"🌀 Open in Web",
|
||||||
markup,
|
link,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue