Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/5201213/wechatpadpro-on-wechat
/ functions
Functions
1,232 in github.com/5201213/wechatpadpro-on-wechat
⨍
Functions
1,232
◇
Types & classes
166
↓ 1 callers
Method
_decorate_reply
(self, context: Context, reply: Reply)
channel/chat_channel.py:397
↓ 1 callers
Function
_download_file
(url: str)
bot/linkai/link_ai_bot.py:428
↓ 1 callers
Function
_emoji_debugger
(d, k)
lib/itchat/utils.py:51
↓ 1 callers
Method
_ensure_login
确保登录状态
channel/wxpad/wxpad_channel.py:94
↓ 1 callers
Method
_extract_content_by_jina
使用Jina Reader提取URL内容 Args: target_url: 目标URL Returns: str: 提取的内容文本
plugins/jina_sum/jina_sum.py:162
↓ 1 callers
Method
_extract_content_general
通用网页内容提取方法 Args: url: 网页URL Returns: str: 提取的内容,失败返回None
plugins/jina_sum/jina_sum.py:352
↓ 1 callers
Method
_extract_dynamic_content
使用JavaScript渲染提取动态页面内容 Args: url: 网页URL headers: 可选的请求头 Returns: str: 提取的内容,
plugins/jina_sum/jina_sum.py:522
↓ 1 callers
Method
_extract_video_info_from_xml
从XML内容中提取视频CDN信息
channel/wxpad/wxpad_message.py:712
↓ 1 callers
Method
_fail_callback
(self, session_id, exception, **kwargs)
channel/chat_channel.py:500
↓ 1 callers
Method
_fetch_agent_suffix
(self, response)
bot/linkai/link_ai_bot.py:361
↓ 1 callers
Method
_fetch_app_info
(self, app_code: str)
bot/linkai/link_ai_bot.py:306
↓ 1 callers
Method
_fetch_knowledge_search_suffix
(self, response)
bot/linkai/link_ai_bot.py:343
↓ 1 callers
Method
_fetch_mode
(self, prompt)
plugins/linkai/midjourney.py:363
↓ 1 callers
Method
_filter_tool_list
(self, tool_list: list)
plugins/tool/tool.py:230
↓ 1 callers
Method
_find_group_mapping_code
(self, context)
bot/linkai/link_ai_bot.py:204
↓ 1 callers
Method
_format_size
格式化文件大小
common/tmp_cleaner.py:162
↓ 1 callers
Method
_generate_msg_id
生成唯一的消息ID
channel/web/web_channel.py:49
↓ 1 callers
Method
_generate_reply
(self, context: Context, reply: Reply = Reply())
channel/chat_channel.py:292
↓ 1 callers
Method
_generate_user_key
Generate user key Returns: bool: Whether generation is successful
channel/wxpad/wxpad_channel.py:184
↓ 1 callers
Method
_get
(self, path, params=None)
lib/wxpad/client.py:45
↓ 1 callers
Method
_get_completion_content
(self, messages: list)
bot/bytedance/bytedance_coze_bot.py:149
↓ 1 callers
Function
_get_contact
(seq=0)
lib/itchat/components/contact.py:282
↓ 1 callers
Function
_get_contact
(seq=0)
lib/itchat/async_components/contact.py:268
↓ 1 callers
Method
_get_content_via_newspaper
使用newspaper3k库提取文章内容 Args: url: 文章URL Returns: str: 文章内容,失败返回None
plugins/jina_sum/jina_sum.py:186
↓ 1 callers
Method
_get_file_base_url
(self)
bot/dify/dify_bot.py:399
↓ 1 callers
Method
_get_image_mime_type
获取图片的MIME类型
bot/gemini/google_gemini_bot.py:586
↓ 1 callers
Method
_get_jina_url
(self, target_url)
plugins/jina_sum/jina_sum.py:159
↓ 1 callers
Function
_get_logger
()
common/log.py:57
↓ 1 callers
Method
_get_openai_chat_url
(self)
plugins/jina_sum/jina_sum.py:714
↓ 1 callers
Method
_get_openai_headers
(self)
plugins/jina_sum/jina_sum.py:717
↓ 1 callers
Method
_get_openai_payload
(self, target_url_content)
plugins/jina_sum/jina_sum.py:723
↓ 1 callers
Method
_get_upload_files
(self, session: CozeSession)
bot/bytedance/bytedance_coze_bot.py:167
↓ 1 callers
Method
_get_workflow_payload
(self, query, session: DifySession)
bot/dify/dify_bot.py:403
↓ 1 callers
Method
_handle_agent
(self, query: str, session: DifySession, context: Context)
bot/dify/dify_bot.py:252
↓ 1 callers
Method
_handle_chatbot
(self, query: str, session: DifySession, context: Context)
bot/dify/dify_bot.py:116
↓ 1 callers
Method
_handle_image_message
处理图片消息
bot/gemini/google_gemini_bot.py:125
↓ 1 callers
Method
_handle_message
处理单条消息
channel/wechat/wcf_channel.py:76
↓ 1 callers
Method
_handle_multimodal_message
处理包含图片或文件缓存的多模态消息
bot/gemini/google_gemini_bot.py:205
↓ 1 callers
Method
_handle_sse_response
(self, response: requests.Response)
bot/dify/dify_bot.py:434
↓ 1 callers
Method
_handle_video_message
处理视频消息(当作文件处理)
bot/gemini/google_gemini_bot.py:196
↓ 1 callers
Method
_handle_voice_message
处理语音消息(转为文本后处理)
bot/gemini/google_gemini_bot.py:187
↓ 1 callers
Method
_handle_workflow
(self, query: str, session: DifySession, context: Context)
bot/dify/dify_bot.py:309
↓ 1 callers
Method
_init_single_chat_conf
(self)
plugins/custom_dify_app/custom_dify_app.py:36
↓ 1 callers
Method
_initialize_client
初始化Gemini客户端
bot/gemini/google_gemini_bot.py:63
↓ 1 callers
Method
_is_chat_task
(self, e_context: EventContext)
plugins/linkai/linkai.py:230
↓ 1 callers
Method
_is_supported_image
检查是否支持的图片格式
bot/gemini/google_gemini_bot.py:568
↓ 1 callers
Method
_load_config
从本地配置文件加载配置
voice/tencent/tencent_voice.py:21
↓ 1 callers
Method
_load_config_template
(self)
plugins/jina_sum/jina_sum.py:148
↓ 1 callers
Method
_load_config_template
(self)
plugins/linkai/linkai.py:286
↓ 1 callers
Method
_load_config_template
(self)
plugins/hello/hello.py:125
↓ 1 callers
Method
_model_mapping
(self, model)
bot/claudeapi/claude_api_bot.py:123
↓ 1 callers
Method
_parse_refer_file_content
解析引用文件消息的content,提取文件信息 Args: refer_content: 引用消息的content字段(已解码HTML实体) Returns: dict: 包含
channel/wxpad/wxpad_message.py:1122
↓ 1 callers
Method
_parse_sse_event
Parses a single SSE event string and returns a dictionary of its data.
bot/dify/dify_bot.py:412
↓ 1 callers
Method
_print_tasks
(self)
plugins/linkai/midjourney.py:377
↓ 1 callers
Method
_process_admin_cmd
(self, e_context: EventContext)
plugins/linkai/linkai.py:132
↓ 1 callers
Method
_process_chat_task
处理LinkAI对话任务 :param e_context: 对话上下文
plugins/linkai/linkai.py:235
↓ 1 callers
Method
_process_image_msg
(self, app_code: str, session_id: str, query:str, img_cache: dict)
bot/linkai/link_ai_bot.py:179
↓ 1 callers
Method
_process_refer_message
统一处理引用消息(图片、文件、文本)
channel/wxpad/wxpad_message.py:1073
↓ 1 callers
Method
_process_success_task
处理任务成功的结果 :param task: MJ任务 :param res: 请求结果 :param e_context: 对话上下文
plugins/linkai/midjourney.py:303
↓ 1 callers
Method
_process_url
(self, text)
bot/linkai/link_ai_bot.py:390
↓ 1 callers
Method
_putleft
(self, item)
common/dequeue.py:32
↓ 1 callers
Method
_read_json
(self)
plugins/tool/tool.py:132
↓ 1 callers
Method
_reply
(self, query, session: CozeSession, context: Context)
bot/bytedance/bytedance_coze_bot.py:67
↓ 1 callers
Method
_reply
(self, query: str, session: DifySession, context: Context)
bot/dify/dify_bot.py:97
↓ 1 callers
Method
_request_with_retry
带重试机制的请求方法
lib/wxpad/client.py:60
↓ 1 callers
Method
_save_generated_image
保存Gemini生成的图片到本地文件
bot/gemini/google_gemini_bot.py:507
↓ 1 callers
Method
_save_login_success
保存登录成功后的信息
channel/wxpad/wxpad_channel.py:403
↓ 1 callers
Method
_send
(self, reply: Reply, context: Context, retry_cnt=0)
channel/chat_channel.py:473
↓ 1 callers
Method
_send_chat
(self, bot_id: str, user_id: str, additional_messages: List[Message], session: CozeSession)
bot/bytedance/coze_client.py:21
↓ 1 callers
Method
_send_reply
(self, context: Context, reply: Reply)
channel/chat_channel.py:460
↓ 1 callers
Method
_send_request_with_files
(self, method, endpoint, data, files)
lib/dify/dify_client.py:20
↓ 1 callers
Method
_should_ignore_message
统一的消息过滤检查
channel/wxpad/wxpad_channel.py:571
↓ 1 callers
Method
_success_callback
(self, session_id, **kwargs)
channel/chat_channel.py:497
↓ 1 callers
Method
_thread_pool_callback
(self, session_id, **kwargs)
channel/chat_channel.py:503
↓ 1 callers
Method
_upload_image_url
(self, img_url, access_token)
channel/feishu/feishu_channel.py:122
↓ 1 callers
Method
_wait_for_user_confirmation
使用轮询辅助函数等待用户确认
channel/wxpad/wxpad_channel.py:326
↓ 1 callers
Method
access_key_id
(self)
bot/ali/ali_qwen_bot.py:32
↓ 1 callers
Method
access_key_secret
(self)
bot/ali/ali_qwen_bot.py:35
↓ 1 callers
Method
action
(self, user_action)
plugins/dungeon/dungeon.py:27
↓ 1 callers
Method
action
(self, user_action)
plugins/role/role.py:27
↓ 1 callers
Method
add_query
(self, query)
bot/session_manager.py:24
↓ 1 callers
Method
add_reply
(self, reply)
bot/session_manager.py:28
↓ 1 callers
Method
add_reply
添加机器人的回复
bot/deepseek/deepseek_session.py:22
↓ 1 callers
Method
agent_key
(self)
bot/ali/ali_qwen_bot.py:38
↓ 1 callers
Function
any_to_wav
把任意格式转成wav文件
voice/audio_convert.py:209
↓ 1 callers
Method
api_key_client
(self)
bot/ali/ali_qwen_bot.py:29
↓ 1 callers
Method
app_id
(self)
bot/ali/ali_qwen_bot.py:41
↓ 1 callers
Method
build_reply_content
(self, query, context: Context = None)
channel/channel.py:37
↓ 1 callers
Method
build_text_to_voice
(self, text)
channel/channel.py:43
↓ 1 callers
Method
build_vision_msg
(self, query: str, path: str)
bot/openai/open_ai_vision.py:51
↓ 1 callers
Method
build_voice_to_text
(self, voice_file)
channel/channel.py:40
↓ 1 callers
Function
c2c_download_and_convert
(wework, message, file_name)
channel/wework/wework_message.py:81
↓ 1 callers
Method
calc_tokens
计算当前会话的token数量
bot/deepseek/deepseek_session.py:40
↓ 1 callers
Method
calc_tokens
(self, messages, completion_content)
bot/ali/ali_qwen_bot.py:221
↓ 1 callers
Method
cancel_all_session
(self)
channel/chat_channel.py:571
↓ 1 callers
Method
cancel_session
(self, session_id)
channel/chat_channel.py:561
↓ 1 callers
Method
chat_page
Serve the chat HTML page.
channel/web/web_channel.py:172
↓ 1 callers
Method
check_auto_auth
检查并执行微信ID自动认证 Args: e_context: 事件上下文 Returns: str: 如果进行了自动认证,返回认证成功消息;否则返回空字符串
plugins/godcmd/godcmd.py:477
↓ 1 callers
Method
check_cookie
(self)
bot/claude/claude_ai_bot.py:90
↓ 1 callers
Method
check_login_status
检测扫码状态 Args: user_key: 普通用户密钥(可选,优先使用传入值,否则从配置文件读取) Returns: 扫码状态
lib/wxpad/client.py:207
← previous
next →
301–400 of 1,232, ranked by callers