public class ChatMenuTree extends Object
| 构造器和说明 |
|---|
ChatMenuTree(Config config) |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateChatMenuTreeResp |
create(CreateChatMenuTreeReq req)
添加群菜单,向群内添加群菜单。
|
CreateChatMenuTreeResp |
create(CreateChatMenuTreeReq req,
RequestOptions reqOptions)
添加群菜单,向群内添加群菜单。
|
DeleteChatMenuTreeResp |
delete(DeleteChatMenuTreeReq req)
删除群菜单。
|
DeleteChatMenuTreeResp |
delete(DeleteChatMenuTreeReq req,
RequestOptions reqOptions)
删除群菜单。
|
GetChatMenuTreeResp |
get(GetChatMenuTreeReq req)
获取群内菜单,通过群ID获取群内菜单。
|
GetChatMenuTreeResp |
get(GetChatMenuTreeReq req,
RequestOptions reqOptions)
获取群内菜单,通过群ID获取群内菜单。
|
SortChatMenuTreeResp |
sort(SortChatMenuTreeReq req)
排序群菜单,给一个群内的一级菜单排序。
|
SortChatMenuTreeResp |
sort(SortChatMenuTreeReq req,
RequestOptions reqOptions)
排序群菜单,给一个群内的一级菜单排序。
|
public ChatMenuTree(Config config)
public CreateChatMenuTreeResp create(CreateChatMenuTreeReq req, RequestOptions reqOptions) throws Exception
注意事项:;- 该API是向群内追加菜单,群内原来存在的菜单并不会被覆盖。操作API后,将返回群内所有菜单。;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。;- 一个群内,一级菜单最多有3个,每个一级菜单最多有5个二级菜单。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/create ;
Exceptionpublic CreateChatMenuTreeResp create(CreateChatMenuTreeReq req) throws Exception
注意事项:;- 该API是向群内追加菜单,群内原来存在的菜单并不会被覆盖。操作API后,将返回群内所有菜单。;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。;- 一个群内,一级菜单最多有3个,每个一级菜单最多有5个二级菜单。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/create ;
Exceptionpublic DeleteChatMenuTreeResp delete(DeleteChatMenuTreeReq req, RequestOptions reqOptions) throws Exception
注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。;- 操作API后,将返回群内所有菜单。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/delete ;
Exceptionpublic DeleteChatMenuTreeResp delete(DeleteChatMenuTreeReq req) throws Exception
注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。;- 操作API后,将返回群内所有菜单。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/delete ;
Exceptionpublic GetChatMenuTreeResp get(GetChatMenuTreeReq req, RequestOptions reqOptions) throws Exception
注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/get ;
Exceptionpublic GetChatMenuTreeResp get(GetChatMenuTreeReq req) throws Exception
注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/get ;
Exceptionpublic SortChatMenuTreeResp sort(SortChatMenuTreeReq req, RequestOptions reqOptions) throws Exception
注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。;- 操作API后,将返回群内所有菜单。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/sort ;
Exceptionpublic SortChatMenuTreeResp sort(SortChatMenuTreeReq req) throws Exception
注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 机器人必须在群里。;- 操作API后,将返回群内所有菜单。 ;
官网API文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-menu_tree/sort ;
ExceptionCopyright © 2024. All rights reserved.