public static function bindToObject(TelegramRawData $data, LoggerInterface $logger) : TelegramTypes
 {
     return new ResultBoolean($data->getResultBoolean(), $logger);
 }
 public static function bindToObject(TelegramRawData $data, LoggerInterface $logger) : TelegramTypes
 {
     return new ChatMembersArray($data->getResult(), $logger);
 }
 public static function bindToObject(TelegramRawData $data, LoggerInterface $logger) : TelegramTypes
 {
     return new WebhookInfo($data->getResult(), $logger);
 }
 /**
  * This call will return an array with updates, so call up a custom type to do this
  *
  * @param array $data
  * @param LoggerInterface $logger
  * @return TelegramTypes
  */
 public static function bindToObject(TelegramRawData $data, LoggerInterface $logger) : TelegramTypes
 {
     return new UserProfilePhotos($data->getResult(), $logger);
 }