danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.76k stars 619 forks source link

How to set default participant rights? #1455

Closed viiy closed 7 months ago

viiy commented 7 months ago

I cant find such method. Was trying to call editBanned without participant param and recived PARTICIPANT_ID_INVALID

danog commented 7 months ago

editBanned is what you need, but you need obviously specify the participant parameter, just tweaked banned rights

viiy commented 7 months ago

editBanned is what you need, but you need obviously specify the participant parameter, just tweaked banned rights

do you mean that I need to set rights for each participant individually? and do this for each new participant?

viiy commented 7 months ago

I finaly found method for it. https://docs.madelineproto.xyz/API_docs/methods/messages.editChatDefaultBannedRights.html