mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 03:56:57 +01:00
1.5 KiB
1.5 KiB
Getting info about chats
There are various methods that can be used to fetch info about chats, based on bot API id, tg-cli ID, Peer, User, Chat objects.
get_pwr_chat
$pwr_chat = $MadelineProto->get_pwr_chat(-100214891824);
foreach ($pwr_chat['participants'] as $participant) {
\danog\MadelineProto\Logger::log($participant);
}
Use get_pwr_chat
to get full chat info, including the full list of members, see here for the parameters and the result.
- Completeness: full
- Speed: medium
- Caching: medium
get_full_info
$full_chat = $MadelineProto->get_full_info(-10028941842);
You can also use get_full_info
to get full chat info, without the full list of members, see here for the parameters and the result.
- Completeness: medium
- Speed: medium-fast
- Caching: full
get_info
$chat = $MadelineProto->get_info(-10028941842);
You can also use get_info
to get chat info, see here for the parameters and the result
- Completeness: small
- Speed: very fast
- Caching: full