From 1f2fb7a0108f90e200ba126a805e3bd7414f3044 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 21 Aug 2017 19:01:33 +0200 Subject: [PATCH] Improved docs --- docs/Chat.md | 2 ++ src/danog/MadelineProto/MTProtoTools/PeerHandler.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/Chat.md b/docs/Chat.md index 067f3dd4..ea976dc1 100644 --- a/docs/Chat.md +++ b/docs/Chat.md @@ -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| diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index d6d294d0..8794a569 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -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]; }