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
↓ 3 callers
Method
_append_agent_message
(self, accumulated_agent_message, merged_message)
bot/dify/dify_bot.py:480
↓ 3 callers
Method
_fetch_group_app_code
根据群聊名称获取对应的应用code :param group_name: 群聊名称 :return: 应用code
plugins/linkai/linkai.py:247
↓ 3 callers
Function
_find_file_id
(context)
plugins/linkai/linkai.py:331
↓ 3 callers
Function
_format_user_info
格式化用户信息显示,只使用已提供的昵称,避免重复API调用
channel/wxpad/wxpad_channel.py:40
↓ 3 callers
Function
_get_trigger_prefix
()
plugins/linkai/linkai.py:323
↓ 3 callers
Method
_handle_error_response
处理错误响应并提供用户指导
bot/dify/dify_bot.py:495
↓ 3 callers
Method
_is_non_user_message
检查消息是否来自非用户账号(如公众号、腾讯游戏、微信团队等) Args: msg_source: 消息的MsgSource字段内容 from_user_id: 消息发送者的ID (可能是字符串或者字典)
channel/wxpad/wxpad_message.py:885
↓ 3 callers
Method
_is_summary_open
(self, context)
plugins/linkai/linkai.py:197
↓ 3 callers
Method
_post
(self, path, data=None, params=None)
lib/wxpad/client.py:29
↓ 3 callers
Function
_send_info
(e_context: EventContext, content: str)
plugins/linkai/linkai.py:304
↓ 3 callers
Method
_update_heap
(self, key)
common/sorted_dict.py:51
↓ 3 callers
Method
add_reply
(self, reply)
bot/bytedance/coze_session.py:22
↓ 3 callers
Function
any_to_mp3
把任意格式转成mp3文件 - 优化音质版本 Args: any_path: 输入文件路径 mp3_path: 输出的mp3文件路径 target_duration: 目标时长(秒),如果提供,将调整输出MP3的时长
voice/audio_convert.py:54
↓ 3 callers
Method
base_url
(self)
plugins/linkai/summary.py:69
↓ 3 callers
Method
calc_tokens
(self)
bot/dashscope/dashscope_session.py:42
↓ 3 callers
Method
calc_tokens
(self)
bot/modelscope/modelscope_session.py:43
↓ 3 callers
Method
calc_tokens
(self)
bot/ali/ali_qwen_session.py:51
↓ 3 callers
Method
calc_tokens
(self)
bot/chatgpt/chat_gpt_session.py:52
↓ 3 callers
Method
calc_tokens
(self)
bot/moonshot/moonshot_session.py:43
↓ 3 callers
Method
calc_tokens
(self)
bot/zhipuai/zhipu_ai_session.py:45
↓ 3 callers
Method
calc_tokens
(self)
bot/openai/open_ai_session.py:62
↓ 3 callers
Method
calc_tokens
(self)
bot/minimax/minimax_session.py:60
↓ 3 callers
Function
check_contain
(content, keyword_list)
channel/chat_channel.py:591
↓ 3 callers
Method
check_file
(self, file_path: str, sum_config: dict)
plugins/linkai/summary.py:75
↓ 3 callers
Method
create_img
(self, query, retry_count=0, api_key=None)
bot/chatgpt/chat_gpt_bot.py:229
↓ 3 callers
Method
create_img
(self, query, retry_count=0, api_key=None)
bot/linkai/link_ai_bot.py:317
↓ 3 callers
Method
disable_plugin
(self, name: str)
plugins/plugin_manager.py:233
↓ 3 callers
Function
get_appdata_dir
()
config.py:387
↓ 3 callers
Method
get_conversation_id
(self)
bot/dify/dify_session.py:23
↓ 3 callers
Function
get_download_fn
(core, url, msgId)
lib/itchat/components/messages.py:26
↓ 3 callers
Function
get_download_fn
(core, url, msgId)
lib/itchat/async_components/messages.py:25
↓ 3 callers
Method
get_login_status
获取在线状态 Args: user_key: 普通用户密钥(从管理接口生成,必需) Returns: 在线状态信息
lib/wxpad/client.py:297
↓ 3 callers
Method
get_profile
获取个人资料信息 Args: user_key: 普通用户密钥(可选,优先使用传入值,否则从配置文件读取) Returns: 个人资料信息
lib/wxpad/client.py:1152
↓ 3 callers
Method
get_token
(self)
bot/baidu/baidu_unit_bot.py:29
↓ 3 callers
Method
get_user
(self)
bot/dify/dify_session.py:20
↓ 3 callers
Method
headers
(self)
plugins/linkai/summary.py:72
↓ 3 callers
Method
list_plugins
(self)
plugins/plugin_manager.py:245
↓ 3 callers
Method
percent_encode
对字符串进行百分比编码。 参数: - encode_str (str): 要编码的字符串。 返回值: - str: 编码后的字符串。
voice/ali/ali_api.py:169
↓ 3 callers
Function
print_red
(text)
common/utils.py:81
↓ 3 callers
Function
qrCallback
(uuid, status, qrcode)
channel/wechat/wechat_channel.py:85
↓ 3 callers
Method
send
(self, msg, mediaId=None)
lib/itchat/storage/templates.py:297
↓ 3 callers
Method
send_file
send attachment for options - fileDir: dir for file ready for upload - mediaId: mediaId for file.
lib/itchat/core.py:325
↓ 3 callers
Method
send_raw_msg
(self, msgType, content)
lib/itchat/storage/templates.py:272
↓ 3 callers
Method
send_voice
发送语音 Args: to_user_name: 接收者用户名 voice_data: 语音数据 voice_format: 语音格式 voice_second: 语音时长(秒)
lib/wxpad/client.py:872
↓ 3 callers
Method
set_user_info
(self, user_id: str, user_name: str)
bot/dify/dify_session.py:42
↓ 3 callers
Method
update_friend
update chatroom for friend contact - once called, updated info will be stored for options - u
lib/itchat/core.py:156
↓ 2 callers
Method
ContainsAny
(self,text)
plugins/banwords/lib/WordsSearch.py:211
↓ 2 callers
Method
FindFirst
(self,text)
plugins/banwords/lib/WordsSearch.py:165
↓ 2 callers
Method
Replace
(self,text, replaceChar = '*')
plugins/banwords/lib/WordsSearch.py:229
↓ 2 callers
Method
__init__
(self)
channel/wechat/wechaty_message.py:24
↓ 2 callers
Method
_build_image_contents
构建包含图片的内容列表
bot/gemini/google_gemini_bot.py:238
↓ 2 callers
Method
_build_session
如果session_id不在sessions中,创建一个新的session并添加到sessions中
bot/bytedance/coze_session.py:77
↓ 2 callers
Method
_check_file_size
检查文件大小是否在限制内
bot/gemini/google_gemini_bot.py:578
↓ 2 callers
Method
_compose_context
(self, ctype: ContextType, content, **kwargs)
channel/chat_channel.py:119
↓ 2 callers
Method
_convert_message
转换消息格式
channel/wxpad/wxpad_channel.py:558
↓ 2 callers
Method
_do_check_task
(self, task: MJTask, e_context: EventContext)
plugins/linkai/midjourney.py:300
↓ 2 callers
Method
_download_file
(self, url)
bot/bytedance/bytedance_coze_bot.py:206
↓ 2 callers
Method
_download_file
(self, url)
bot/dify/dify_bot.py:218
↓ 2 callers
Method
_download_image
(self, url)
bot/bytedance/bytedance_coze_bot.py:190
↓ 2 callers
Method
_download_image
(self, url)
bot/dify/dify_bot.py:236
↓ 2 callers
Method
_extract_cdn_info_from_xml
从XML内容中提取图片CDN信息
channel/wxpad/wxpad_message.py:538
↓ 2 callers
Method
_fetch_app_code
根据主配置或者群聊名称获取对应的应用code,优先获取群聊配置的应用code :param context: 上下文 :return: 应用code
plugins/linkai/linkai.py:258
↓ 2 callers
Function
_find_sum_id
(context)
plugins/linkai/linkai.py:327
↓ 2 callers
Function
_format_group_info
格式化群信息显示,只使用已提供的群名称,避免重复API调用
channel/wxpad/wxpad_channel.py:52
↓ 2 callers
Method
_get_payload
(self, query, session: DifySession, response_mode)
bot/dify/dify_bot.py:79
↓ 2 callers
Method
_get_upload_files
(self, session: DifySession, context: Context)
bot/dify/dify_bot.py:347
↓ 2 callers
Method
_handle_file_message
处理文件消息
bot/gemini/google_gemini_bot.py:152
↓ 2 callers
Method
_handle_message
(self, msg)
channel/wxpad/wxpad_channel.py:601
↓ 2 callers
Method
_is_mj_open
(self, context)
plugins/linkai/midjourney.py:414
↓ 2 callers
Method
_is_supported_file
检查是否支持的文件格式
bot/gemini/google_gemini_bot.py:573
↓ 2 callers
Method
_load_all_config
背景: 目前插件配置存放于每个插件目录的config.json下,docker运行时不方便进行映射,故增加统一管理的入口,优先 加载 plugins/config.json,原插件目录下的config.json 不受影响 从 plugins/con
plugins/plugin_manager.py:66
↓ 2 callers
Method
_load_login_info
从状态文件加载登录信息
channel/wxpad/wxpad_channel.py:264
↓ 2 callers
Method
_parse_summary_res
(self, res)
plugins/linkai/summary.py:54
↓ 2 callers
Method
_perform_cleanup
执行一次清理操作
common/tmp_cleaner.py:84
↓ 2 callers
Method
_poll_status
通用轮询状态辅助函数
channel/wxpad/wxpad_channel.py:299
↓ 2 callers
Function
_prepare_file
(fileDir, file_=None)
lib/itchat/components/messages.py:286
↓ 2 callers
Function
_prepare_file
(fileDir, file_=None)
lib/itchat/async_components/messages.py:285
↓ 2 callers
Method
_qr_code_login
QR code login process
channel/wxpad/wxpad_channel.py:339
↓ 2 callers
Method
_reset_app
(self)
plugins/tool/tool.py:239
↓ 2 callers
Function
_reset_logger
(log)
common/log.py:11
↓ 2 callers
Method
_save_image_data
保存图片数据到文件
channel/wxpad/wxpad_message.py:678
↓ 2 callers
Function
_send
(channel, reply: Reply, context, retry_cnt=0)
plugins/linkai/midjourney.py:434
↓ 2 callers
Method
_send_voice
发送语音消息,自动转换为SILK格式 Args: to_user_id: 接收者ID voice_file_path_segment: 语音文件路径 Returns: dict:
channel/wxpad/wxpad_channel.py:1652
↓ 2 callers
Method
_upload_file_to_gemini
上传文件到Gemini API
bot/gemini/google_gemini_bot.py:548
↓ 2 callers
Method
accept_friend
accept a friend or accept a friend for options - userName: 'UserName' for friend's info dict - status:
lib/itchat/core.py:221
↓ 2 callers
Method
add_member_into_chatroom
add members into chatroom for adding - you can't add yourself or member already in chatroom - if so, no o
lib/itchat/core.py:275
↓ 2 callers
Method
add_query
(self, query)
bot/bytedance/coze_session.py:18
↓ 2 callers
Function
any_to_amr
把任意格式转成amr文件
voice/audio_convert.py:295
↓ 2 callers
Function
any_to_sil
把任意格式转成sil文件 - 优化音质版本
voice/audio_convert.py:224
↓ 2 callers
Method
calc_tokens
(self)
bot/linkai/link_ai_bot.py:464
↓ 2 callers
Method
calc_tokens
(self)
bot/baidu/baidu_wenxin_session.py:42
↓ 2 callers
Function
cdn_download
(wework, message, file_name)
channel/wework/wework_message.py:41
↓ 2 callers
Method
cdn_upload_video
上传视频 Args: thumb_data: 缩略图数据 to_user_name: 接收者用户名 video_data: 视频数据(数组格式) user_key: 普通用户密钥(可选,
lib/wxpad/client.py:443
↓ 2 callers
Method
check_login
check login status for options: - uuid: if uuid is not set, latest uuid you fetched will be used for return v
lib/itchat/core.py:77
↓ 2 callers
Method
check_url
(self, url: str)
plugins/linkai/summary.py:90
↓ 2 callers
Function
check_wxpad_online
检查wxpad用户是否在线
web_ui.py:18
↓ 2 callers
Method
clear_session
(self, session_id)
bot/bytedance/coze_session.py:115
↓ 2 callers
Method
configured_reply
determine the type of message and reply if its method is defined however, I use a strange way to determine whether a msg is from massive
lib/itchat/core.py:428
↓ 2 callers
Function
convert_webp_to_png
(webp_image)
common/utils.py:62
↓ 2 callers
Function
create_bot
create a bot_type instance :param bot_type: bot type code :return: bot instance
bot/bot_factory.py:7
← previous
next →
101–200 of 1,232, ranked by callers