mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-06 19:20:24 +08:00
✨ QQサポートを追加
This commit is contained in:
@@ -55,3 +55,15 @@ func (bot *Bot) postOpenAPIofDMS(ep, contenttype string, body io.Reader) (*DMS,
|
||||
}
|
||||
return &resp.DMS, err
|
||||
}
|
||||
|
||||
func (bot *Bot) postOpenAPIofIDTimestampMessageResult(ep, contenttype string, body io.Reader) (*IDTimestampMessageResult, error) {
|
||||
resp := &struct {
|
||||
CodeMessageBase
|
||||
IDTimestampMessageResult
|
||||
}{}
|
||||
err := bot.PostOpenAPI(ep, contenttype, resp, body)
|
||||
if err != nil {
|
||||
err = errors.Wrap(err, getCallerFuncName())
|
||||
}
|
||||
return &resp.IDTimestampMessageResult, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user