Skip to main content
Version: Next

nonebot.adapters.feishu.utils

def log(<auto>)​

  • 参数

    auto

  • 返回

    • untyped

def f2b(file)​

  • 参数

    • file (str | bytes | BytesIO | Path)
  • 返回

    • bytes

def resolve_rest_api(feishu, api)​

  • 说明: 根据 rest.im.v1.message.async_create 这样的路径找到 larkify 的方法。

  • 参数

    • feishu (Feishu)

    • api (str)

  • 返回

    • (...) -> Awaitable[Any]

class APIContext(bot, parts)​

  • 说明: 把 bot.rest.a.b(...) 转换为 bot.call_api("rest.a.b", ...)。

  • 参数

    • bot (Bot)

    • parts (tuple[str, ...])