MadelineProtoDocs/docs/getId.md
2024-05-23 18:25:50 +02:00

798 B

title description grand_parent parent
getId getId parameters, return type and example Telegram RPC API Methods

Method: getId

Gets a bot API ID from a username, update, message, or other related constructors.

Parameters:

Name Type
id A username, a bot API chat id, a Chat, a User, an InputPeer, an InputUser, an InputChannel, a Peer, or a Chat object

Return type: integer

Example (now fully async!):

$id = $MadelineProto->getId($id);