mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-11-26 20:35:03 +01:00
798 B
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);