You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ WARNING: Push to blocked user returns 200 OK (no error)
When you push a message to a user who has blocked your bot:
API returns 200 OK (success)
No error thrown
Message is NOT delivered
You cannot detect this failure!
Workaround: Check follow status before pushing:
// Check if user is following before pushvarprofile=awaitlineClient.Profile.GetUserProfileAsync(userId);if(profile==null){// User may have blocked or unfollowedlogger.LogWarning("Cannot reach user {UserId}",userId);}
Group Limitations
Limitation
Value
Notes
Max bots per group
1
Cannot add multiple bots
Group member limit
500
LINE group limit
Message length
5,000 chars
Per message
Service Reference
ILineProfile (Profile Service)
publicinterfaceILineProfile{// ✅ Available for all account typesTask<LineUserProfile?>GetUserProfileAsync(stringuserId);Task<LineGroupSummary?>GetGroupSummaryAsync(stringgroupId);// ⚠️ VERIFIED+ ACCOUNT REQUIREDTask<LineUserProfile?>GetGroupMemberProfileAsync(stringgroupId,stringuserId);Task<int>GetGroupMemberCountAsync(stringgroupId);Task<LineFollowersResult>GetGroupMemberIdsAsync(stringgroupId,string?continuationToken=null);// ⚠️ VERIFIED+ ACCOUNT REQUIREDTask<LineFollowersResult>GetFollowerIdsAsync(string?continuationToken=null);}
ILineMessaging (Messaging Service)
publicinterfaceILineMessaging{// ✅ Available for all account typesTaskPushAsync(stringmessage,stringto);TaskPushAsync(ILineMessagemessage,stringto);TaskReplyAsync(stringmessage,stringreplyToken);TaskMulticastAsync(stringmessage,IEnumerable<string>userIds);// ⚠️ VERIFIED+ ACCOUNT REQUIREDTaskBroadcastAsync(stringmessage);TaskBroadcastAsync(ILineMessagemessage);}
Error Handling
Common Error Codes
Status
Code
Meaning
400
Invalid request
Check request body format
401
Unauthorized
Invalid channel access token
403
Forbidden
Feature requires Verified+ account
404
Not found
User/group not found or not reachable
429
Rate limited
Too many requests
Handling 403 Forbidden
try{varmemberIds=awaitlineClient.Profile.GetGroupMemberIdsAsync(groupId);}catch(HttpRequestExceptionex)when(ex.StatusCode==HttpStatusCode.Forbidden){// This API requires Verified (Blue) or Premium (Green) accountlogger.LogError("GetGroupMemberIds requires Verified+ account. "+"Apply for verification at LINE Developers Console.");}