account.updatePersonalChannel #
Associate (or remove) a personal channel », that will be listed on our personal profile page ».¶
Changing it will emit an updateUser update.¶
Layer 223
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.updatePersonalChannel#d94305e0 channel:InputChannel = Bool; Parameters #
| Name | Type | Description |
|---|---|---|
| channel | InputChannel | The channel, pass inputChannelEmpty to remove it. |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | PUBLIC_BROADCAST_EXPECTED | channel only accepts a channel, but a supergroup was passed. |
Related pages #
inputChannelEmpty #
Represents the absence of a channel¶
Channels, supergroups, gigagroups and basic groups #
How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.¶
User profiles #
Telegram offers many customization options for your profile!¶
updateUser #
User (user and/or userFull) information was updated.¶
This update can only be received through getDifference or in updates/updatesCombined constructors, so it will always come bundled with the updated user, that should be applied as usual », without re-fetching the info manually.¶
However, full peer information will not come bundled in updates, so the full peer cache (userFull) must be invalidated for user_id when receiving this update.¶