Overview
NapCat provides extended actions beyond the standard OneBot 11 protocol. These actions enable advanced features specific to NapCat and the NTQQ platform.Image & Media
ocr_image
Perform OCR (text recognition) on an image.Request
Image path, URL, or Base64-encoded image data
Response
Array of recognized text objects with position and content
Detected language
Example
fetch_custom_face
Fetch custom emoji/sticker from user’s collection.Request
Number of custom faces to fetch
fetch_emoji_like
Fetch emoji reactions available for messages.Request
Emoji ID
Emoji type
Message ID
Number of reactions to fetch
get_emoji_likes
Get list of users who reacted with emoji to a message.Status & Profile
set_online_status
Set the bot’s online status.Request
Status code (see status list below)
Extended status code
Battery status (0-100)
Status Codes
Basic Status:10- Online30- Away40- Invisible50- Busy60- Q Me70- Do Not Disturb
1028- Listening to Music1018- Studying1016- Sleeping1027- Gaming (TIMI)1300- Slacking Off1032- Staying Up Late1401- Emo- And many more…
Example
set_diy_online_status
Set a custom DIY online status.Request
Custom status text
set_qq_avatar
Set the bot’s QQ avatar/profile picture.Request
Image path, URL, or Base64 data
set_qq_profile
Update QQ profile information.Request
Nickname
Personal signature
Gender:
0 (unknown), 1 (male), 2 (female)set_long_nick
Set extended nickname/signature.Request
Extended nickname text
get_profile_like
Get list of users who liked the bot’s profile.get_user_status
Get a user’s current online status.Request
User QQ number
Group Extensions
get_group_info_ex
Get extended group information (more details than standardget_group_info).
Request
Group number
get_group_add_request
Get pending group join requests.Request
Group number
set_group_remark
Set remark/note for a group.Request
Group number
Group remark text
set_group_add_option
Set group join approval options.Request
Group number
Join option:
0 (anyone), 1 (approval required), 2 (reject all)set_group_search
Set whether group can be found in search.Request
Group number
Enable or disable group search
set_group_robot_add_option
Set robot/bot join approval options for group.set_group_kick_members
Kick multiple members from group at once.Request
Group number
Array of user QQ numbers to kick
Reject future join requests
set_special_title
Set a member’s special title in group.Request
Group number
Member QQ number
Special title text (empty to remove)
Title duration in seconds (-1 for permanent)
set_group_sign
Perform group check-in/sign.Request
Group number
set_input_status
Set typing status in a conversation.Request
User QQ number (for private chat)
Group number (for group chat)
Input status:
1 (typing), 0 (not typing)Group Album
get_qun_album_list
Get list of group photo albums.Request
Group number
get_group_album_media_list
Get media list from a group album.Request
Group number
Album ID
upload_image_to_qun_album
Upload image to group album.Request
Group number
Album ID
Image path or URL
do_group_album_comment
Comment on a group album photo.Request
Group number
Album ID
Photo ID
Comment text
set_group_album_media_like
Like a group album photo.del_group_album_media
Delete media from group album.Advanced Features
get_rkey
Get Rkey for advanced operations.get_clientkey
Get client key for authentication.get_credentials
Get credentials (cookies, csrf token, etc.).Response
Cookie string
CSRF token
get_ai_characters
Get available AI character list.Request
Chat type:
1 (private), 2 (group)get_mini_app_ark
Get mini app ARK message data.Request
Mini app ID
share_contact
Share contact card.Request
Target group number
Target user QQ number
Phone number to share
translate_en_word_to_zn
Translate English word to Chinese.Request
English word to translate
create_collection
Add message to favorites/collection.Request
Message ID to collect
get_collection_list
Get list of collected/favorited messages.Request
Collection category
Number of items to retrieve
get_robot_uin_range
Get robot/bot QQ number range information.send_packet
Send raw protocol packet (advanced).Request
Command name
Packet data (hex string)
bot_exit
Gracefully exit/shutdown the bot.Request
No parameters required.click_inline_keyboard_button
Click an inline keyboard button in a bot message.Request
Message ID containing the keyboard
Button ID to click
Button callback data
System Actions
get_version_info
Get NapCat version information.get_status
Get bot online status and statistics.get_csrf_token
Get CSRF token for web operations.can_send_image
Check if bot can send images.can_send_record
Check if bot can send voice records.set_restart
Restart the bot.Request
Restart delay in milliseconds
clean_cache
Clear bot’s cache.Poke Actions
send_poke
Send a poke/nudge to user or group.Request
User QQ number (for private poke)
Group number (for group poke)
friend_poke
Poke a friend.Request
Friend QQ number
group_poke
Poke in a group.Request
Group number
Target member QQ number
Extended actions are specific to NapCat and may not be available in other OneBot implementations. Always check the action availability before using in production.
