Closed Yxue-1906 closed 1 year ago
The permissions in chat.permissions
is for non-administrator members. If you want to check permissions for a single user you must use getChatMember
.
chat.permissions
:
https://github.com/tdlib/td/blob/1543c41f3411bd6aa74713c8aba4e93fa8d952c7/td/generate/scheme/td_api.tl#L1318
The permissions in
chat.permissions
is for non-administrator members. If you want to check permissions for a single user you must usegetChatMember
.
chat.permissions
:
okay, got it. thx for your reply.
For self you can also check that supergroup.status
is chatMemberStatusCreator
, or it is chatMemberStatusAdministrator
and status.rights.can_post_messages == true
.
if find although the user is the creator of the channel, chatPermission in chat object returned by getChat indicates the user has no right to send message.
part of the log