LTD-ManaagerBot/python/requests/message/group/ktg.py

14 lines
603 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ktg.py
import sys
sys.path.append("../..") # 添加父目录到模块搜索路径
import KtRequestGenerator as kg
def main():
api_paths = [
"/send_group_msg", # 发送群消息文本、图片、表情、JSON、语音、视频、回复、音乐卡片等
"/send_group_forward_msg", # 发送群合并转发消息
"/forward_group_single_msg", # 转发单条消息到群
"/group_poke" # 发送群聊戳一戳
]
kg.generateRequestKt("message.group", "AbstractMessage", api_paths)
if __name__ == "__main__":
main()