Improved docs

This commit is contained in:
Daniil Gentili 2017-08-21 19:01:33 +02:00
parent 68749f63e1
commit 1f2fb7a010
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ description: chat attributes, type and example
|signatures|[Bool](API_docs/types/Bool.md) | Optional|Are channel signatures enabled?|
|can\_view\_participants|[Bool](API_docs/types/Bool.md) | Optional|Can you view participants (you can still view the bots in channels even if this is false)|
|can\_set\_username|[Bool](API_docs/types/Bool.md) | Optional|Can you set the username of this channel/supergroup?|
|can\_set\_stickers|[Bool](API_docs/types/Bool.md) | Optional|Can you set the associated stickerpack of this channel/supergroup?|
|stickerset|[StickerSet](API_docs/types/StickerSet.md) | Optional|StickerSet associtaed to this channel/supergroup|
|migrated\_from\_chat\_id|[int](API_docs/types/int.md) | Optional|MTProto chat id of the original chat (render it negative to make it a bot API chat id)|
|migrated\_from\_max\_id|[int](API_docs/types/int.md) | Optional|Last message id before migration|
|pinned\_msg\_id|[int](API_docs/types/int.md) | Optional|Message id of pinned message|

View File

@ -393,7 +393,7 @@ trait PeerHandler
$res[$key] = $full['Chat'][$key];
}
}
foreach (['can_view_participants', 'can_set_username', 'participants_count', 'admins_count', 'kicked_count', 'banned_count', 'migrated_from_chat_id', 'migrated_from_max_id', 'pinned_msg_id', 'about'] as $key) {
foreach (['can_set_stickers', 'stickerset', 'can_view_participants', 'can_set_username', 'participants_count', 'admins_count', 'kicked_count', 'banned_count', 'migrated_from_chat_id', 'migrated_from_max_id', 'pinned_msg_id', 'about'] as $key) {
if (isset($full['full'][$key])) {
$res[$key] = $full['full'][$key];
}