Why is it disabling full permission in telegram group?

NaIs0335

New member
I made a bot for the telegram group to disable message permission for the members for a specific time, but problematically it always disables all the permissions even "Add Users" permission. What's wrong with this code?

Code:
{
  "chat_id": {lv=Channel ID},
  "permissions": {"can_send_messages": false},  "use_independent_chat_permissions": false
}
 

Attachments

  • IMG_20240107_001117.jpg
    IMG_20240107_001117.jpg
    120.5 KB · Views: 5

Endercraft

Moderator (& bug finder :D)
This isn't related to MacroDroid. You should ask on Telegram forums.
I can see in the JSON that the second permission isn't in the permissions dictionary.
 

NaIs0335

New member
Your code likely lacks granularity in permission handling. Ensure you're only modifying the specific permission needed (e.g., "Send Messages") without altering others, like "Add Users." Review your code's logic for precise adjustments.
Yeah, it was interfering with other commands. Now it's fixed and working smoothly. 😊
 
Top