示例#1
0
async def giblog(event):
    herokuHelper = HerokuHelper(Var.HEROKU_APP_NAME, Var.HEROKU_API_KEY)
    logz = herokuHelper.getLog()
    with open("logs.txt", "w") as log:
        log.write(logz)
    await borg.send_file(event.chat_id,
                         "logs.txt",
                         caption=f"**Logs Of {Var.HEROKU_APP_NAME}**")
示例#2
0
async def giblog(event):
    if event.fwd_from:
        return
    herokuHelper = HerokuHelper(Config.HEROKU_APP_NAME, Config.HEROKU_API_KEY)
    logz = herokuHelper.getLog()
    with open("logs.txt", "w") as log:
        log.write(logz)
    await borg.send_file(event.chat_id,
                         "logs.txt",
                         caption=f"**Logs Of {Config.HEROKU_APP_NAME}**")