1 | <?php |
||
12 | /** |
||
13 | * Contains methods that all Telegram methods should implement |
||
14 | */ |
||
15 | abstract class TelegramMethods implements TelegramMethodDefinitions |
||
16 | { |
||
17 | /** |
||
18 | * Most of the methods will return a Message object on success, so set that as the default. |
||
19 | * |
||
20 | * This function may however be overwritten if the method uses another object, there are many examples of this, so |
||
21 | * just check out the rest of the code. A good place to start is GetUserProfilePhotos or LeaveChat |
||
22 | * |
||
23 | * @see unreal4u\TelegramAPI\Telegram\Methods\GetUserProfilePhotos |
||
24 | * @see unreal4u\TelegramAPI\Telegram\Methods\LeaveChat |
||
25 | * |
||
26 | * @param TelegramRawData $data |
||
27 | * @param LoggerInterface $logger |
||
28 | * |
||
29 | * @return TelegramTypes |
||
30 | */ |
||
31 | 8 | public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes |
|
35 | |||
36 | /** |
||
37 | * Before making the actual request this method will be called |
||
53 |