arrow_back
Back

MadelineProto get_full_info: extended chat and channel details

Andrew Dorokhov Andrew Dorokhov schedule 3 min read
menu_book Table of Contents

get_full_info() returns the same peer constructors as get_info(), plus a full block (channelFull / chatFull) with about text, participant counts, invite link, pinned message, and related metadata.

Full info for a group / channel

use danog\MadelineProto\API;

$api = new API('session.file');

$me = $api->get_full_info('@CryptoPumpsChat');

Response format:

Array
(
    [Chat] => Array
        (
            [_] => channel
            [creator] => 1
            [left] =>
            [editor] =>
            [broadcast] =>
            [verified] =>
            [megagroup] => 1
            [restricted] =>
            [democracy] => 1
            [signatures] =>
            [min] =>
            [id] => 1366131815
            [access_hash] => -5066093694859528565
            [title] => CryptoPumps Chat
            [username] => CryptoPumpsChat
            [photo] => Array
                (
                    [_] => chatPhoto
                    [photo_small] => Array
                        (
                            [_] => fileLocation
                            [dc_id] => 2
                            [volume_id] => 238227483
                            [local_id] => 338514
                            [secret] => 1427158542046898257
                        )

                    [photo_big] => Array
                        (
                            [_] => fileLocation
                            [dc_id] => 2
                            [volume_id] => 238227483
                            [local_id] => 338516
                            [secret] => -2326088386895529042
                        )

                )

            [date] => 1521028399
            [version] => 0
        )

    [InputPeer] => Array
        (
            [_] => inputPeerChannel
            [channel_id] => 1366131815
            [access_hash] => -5066093694859528565
        )

    [Peer] => Array
        (
            [_] => peerChannel
            [channel_id] => 1366131815
        )

    [DialogPeer] => Array
        (
            [_] => dialogPeer
            [peer] => Array
                (
                    [_] => peerChannel
                    [channel_id] => 1366131815
                )

        )

    [NotifyPeer] => Array
        (
            [_] => notifyPeer
            [peer] => Array
                (
                    [_] => peerChannel
                    [channel_id] => 1366131815
                )

        )

    [InputDialogPeer] => Array
        (
            [_] => inputDialogPeer
            [peer] => Array
                (
                    [_] => inputPeerChannel
                    [channel_id] => 1366131815
                    [access_hash] => -5066093694859528565
                )

        )

    [InputNotifyPeer] => Array
        (
            [_] => inputNotifyPeer
            [peer] => Array
                (
                    [_] => inputPeerChannel
                    [channel_id] => 1366131815
                    [access_hash] => -5066093694859528565
                )

        )

    [InputChannel] => Array
        (
            [_] => inputChannel
            [channel_id] => 1366131815
            [access_hash] => -5066093694859528565
        )

    [channel_id] => 1366131815
    [bot_api_id] => -1001366131815
    [type] => supergroup
    [full] => Array
        (
            [_] => channelFull
            [can_view_participants] => 1
            [can_set_username] => 1
            [can_set_stickers] =>
            [hidden_prehistory] =>
            [id] => 1366131815
            [about] => Чат для осбуждения Telegram-каналов, где проводятся пампы криптовалют. Обмениваемся опытом, определяем недобросовестные каналы, предлагаем способы сделать иксы! :)
            [participants_count] => 63
            [admins_count] => 1
            [kicked_count] => 1
            [banned_count] => 0
            [read_inbox_max_id] => 106
            [read_outbox_max_id] => 106
            [unread_count] => 0
            [chat_photo] => Array
                (
                    [_] => photo
                    [has_stickers] =>
                    [id] => 468476654938859531
                    [access_hash] => -4386957288576446868
                    [date] => 1521029433
                    [sizes] => Array
                        (
                            [0] => Array
                                (
                                    [_] => photoSize
                                    [type] => a
                                    [location] => Array
                                        (
                                            [_] => fileLocation
                                            [dc_id] => 2
                                            [volume_id] => 238227483
                                            [local_id] => 338514
                                            [secret] => 1427158542046898257
                                        )

                                    [w] => 160
                                    [h] => 160
                                    [size] => 4757
                                )

                            [1] => Array
                                (
                                    [_] => photoSize
                                    [type] => b
                                    [location] => Array
                                        (
                                            [_] => fileLocation
                                            [dc_id] => 2
                                            [volume_id] => 238227483
                                            [local_id] => 338515
                                            [secret] => 4938754564058627975
                                        )

                                    [w] => 320
                                    [h] => 320
                                    [size] => 10769
                                )

                            [2] => Array
                                (
                                    [_] => photoSize
                                    [type] => c
                                    [location] => Array
                                        (
                                            [_] => fileLocation
                                            [dc_id] => 2
                                            [volume_id] => 238227483
                                            [local_id] => 338516
                                            [secret] => -2326088386895529042
                                        )

                                    [w] => 640
                                    [h] => 640
                                    [size] => 25388
                                )

                        )

                )

            [notify_settings] => Array
                (
                    [_] => peerNotifySettings
                    [show_previews] =>
                    [silent] =>
                    [mute_until] => 0
                )

            [exported_invite] => Array
                (
                    [_] => chatInviteExported
                    [link] => https://t.me/joinchat/BoBdCQ4wxILN4PYeVXLUhw
                )

            [bot_info] => Array
                (
                )

            [migrated_from_chat_id] => 238077058
            [migrated_from_max_id] => 65533
            [pinned_msg_id] => 7
        )

    [last_update] => 1537484764
)
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

MadelineProto get_self: current account profile

arrow_forward