MCPcopy Create free account
hub / github.com/bytesnake/telebot / fetch_json

Method fetch_json

src/bot.rs:32–42  ·  view source on GitHub ↗

Creates a new request and adds a JSON message to it. The returned Future contains a the reply as a string. This method should be used if no file is added becontext a JSON msg is always compacter than a formdata one.

(
        &self,
        func: &'static str,
        msg: &str,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_fetchFunction · 0.85
build_jsonMethod · 0.80

Tested by

no test coverage detected